diff options
author | 2017-05-24 14:44:38 +0100 | |
---|---|---|
committer | 2017-06-14 10:53:48 +0100 | |
commit | 1cfea7af6f38cd06393fed3e466701869ce8b2c3 (patch) | |
tree | 3e3b185eeb4ce0c6a2cc3184e0305f37151261c2 /compiler/oat_test.cc | |
parent | d38b67c9892b603f57a6b51a1b9d7f4e610158aa (diff) |
Code cleanup around vdex.
1) Handle the vdex in dex2oat instead of compiler_driver
2) CHECK instead of DCHECK that we don't dexlayout with vdex.
Test: test.py
Change-Id: Idf7be59bb25708181e391d17128480659ac697e5
Diffstat (limited to 'compiler/oat_test.cc')
-rw-r--r-- | compiler/oat_test.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc index 55d0bd95d7..910d7a7c54 100644 --- a/compiler/oat_test.cc +++ b/compiler/oat_test.cc @@ -400,8 +400,7 @@ TEST_F(OatTest, WriteRead) { if (kCompile) { TimingLogger timings2("OatTest::WriteRead", false, false); compiler_driver_->SetDexFilesForOatFile(class_linker->GetBootClassPath()); - compiler_driver_->CompileAll( - class_loader, class_linker->GetBootClassPath(), /* verifier_deps */ nullptr, &timings2); + compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings2); } ScratchFile tmp_oat, tmp_vdex(tmp_oat, ".vdex"); @@ -415,8 +414,7 @@ TEST_F(OatTest, WriteRead) { ASSERT_TRUE(success); if (kCompile) { // OatWriter strips the code, regenerate to compare - compiler_driver_->CompileAll( - class_loader, class_linker->GetBootClassPath(), /* verifier_deps */ nullptr, &timings); + compiler_driver_->CompileAll(class_loader, class_linker->GetBootClassPath(), &timings); } std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp_oat.GetFilename(), tmp_oat.GetFilename(), @@ -540,7 +538,7 @@ TEST_F(OatTest, EmptyTextSection) { soa.Decode<mirror::ClassLoader>(class_loader).Ptr()); } compiler_driver_->SetDexFilesForOatFile(dex_files); - compiler_driver_->CompileAll(class_loader, dex_files, /* verifier_deps */ nullptr, &timings); + compiler_driver_->CompileAll(class_loader, dex_files, &timings); ScratchFile tmp_oat, tmp_vdex(tmp_oat, ".vdex"); SafeMap<std::string, std::string> key_value_store; |