diff options
| author | 2017-08-08 21:44:57 +0000 | |
|---|---|---|
| committer | 2017-08-08 21:44:57 +0000 | |
| commit | 18e91619f38349e29367567a70f2f974a8cdaf67 (patch) | |
| tree | 4b862a57195b67785e3cc4e5a763ccfc1ce85aa0 /compiler/driver/compiler_driver.cc | |
| parent | 785e3555685279767f52f1280ea13ba35b112e86 (diff) | |
| parent | 0b1c341d2d89a483142cd14bdeb4650ab00184f1 (diff) | |
Merge "Support class unloading in dex2oat for quicken multidex"
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 6e087c5785..037e45840d 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -3040,4 +3040,10 @@ void CompilerDriver::SetDexFilesForOatFile(const std::vector<const DexFile*>& de } } +bool CompilerDriver::CanAssumeVerified(ClassReference ref) const { + mirror::Class::Status existing = mirror::Class::kStatusNotReady; + compiled_classes_.Get(DexFileReference(ref.first, ref.second), &existing); + return existing >= mirror::Class::kStatusVerified; +} + } // namespace art |