diff options
| author | 2017-09-18 08:28:15 +0000 | |
|---|---|---|
| committer | 2017-09-18 08:28:15 +0000 | |
| commit | fe712a8b9c247d66df013f2b4b6faa6009d745bb (patch) | |
| tree | 45897680a8f1897b6d33c3bccfad859bb6d9abe0 /compiler/dex/quick_compiler_callbacks.cc | |
| parent | 3597f51c4af8d5e32c21789ea7b7cd75dc078120 (diff) | |
| parent | 486dda03900a215650f71a9068759978aa77c699 (diff) | |
Merge "Add support for registering classpath classes status."
Diffstat (limited to 'compiler/dex/quick_compiler_callbacks.cc')
| -rw-r--r-- | compiler/dex/quick_compiler_callbacks.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/compiler/dex/quick_compiler_callbacks.cc b/compiler/dex/quick_compiler_callbacks.cc index 23511e55fc..92b123013d 100644 --- a/compiler/dex/quick_compiler_callbacks.cc +++ b/compiler/dex/quick_compiler_callbacks.cc @@ -44,11 +44,14 @@ ClassStatus QuickCompilerCallbacks::GetPreviousClassState(ClassReference ref) { // In the case of the quicken filter: avoiding verification of quickened instructions, which the // verifier doesn't currently support. // In the case of the verify filter, avoiding verifiying twice. - ClassStatus status; - if (!compiler_driver_->GetCompiledClass(ref, &status)) { - return ClassStatus::kStatusNotReady; + return compiler_driver_->GetClassStatus(ref); +} + +void QuickCompilerCallbacks::UpdateClassState(ClassReference ref, ClassStatus status) { + // Driver is null when bootstrapping the runtime. + if (compiler_driver_ != nullptr) { + compiler_driver_->RecordClassStatus(ref, status); } - return status; } } // namespace art |