diff options
| author | 2017-12-19 22:55:03 +0000 | |
|---|---|---|
| committer | 2017-12-19 22:55:03 +0000 | |
| commit | a6615945258f003756ce7f344670a2802fad7037 (patch) | |
| tree | ebeb5b97ff910ec282c4d32104d73a4372979051 /compiler/driver/compiler_driver.cc | |
| parent | 69b2560d6aa74b38cbbd22b8fdabbfb38e814835 (diff) | |
| parent | e166e67666bf4b23e4ed0a98f5e2bb3cae9cee7d (diff) | |
Merge "Revert "Don't embed the dex code in the oat file if dex is uncompressed.""
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 1c65df8bb5..0631c0f12c 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -402,12 +402,6 @@ static optimizer::DexToDexCompilationLevel GetDexToDexCompilationLevel( Thread* self, const CompilerDriver& driver, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, const DexFile::ClassDef& class_def) REQUIRES_SHARED(Locks::mutator_lock_) { - // When the dex file is uncompressed in the APK, we do not generate a copy in the .vdex - // file. As a result, dex2oat will map the dex file read-only, and we only need to check - // that to know if we can do quickening. - if (dex_file.GetContainer() != nullptr && dex_file.GetContainer()->IsReadOnly()) { - return optimizer::DexToDexCompilationLevel::kDontDexToDexCompile; - } auto* const runtime = Runtime::Current(); DCHECK(driver.GetCompilerOptions().IsQuickeningCompilationEnabled()); const char* descriptor = dex_file.GetClassDescriptor(class_def); |