diff options
author | 2018-12-07 08:11:24 +0000 | |
---|---|---|
committer | 2018-12-07 08:11:24 +0000 | |
commit | ed8b4ac3d7a78cc4976fa24a34bac92f4fd47a27 (patch) | |
tree | 8292de7f2a4e8b9c0526d05a604668da11e1980e /compiler/dex/verification_results.cc | |
parent | a9a0973ff03ce2c2d1ec65695ad0f4cd8ed170a7 (diff) | |
parent | 2afaff7e9171992b0e2e95d0f485782d28e1b9dc (diff) |
Merge "Refactor CompilerDriver::CompileAll()."
Diffstat (limited to 'compiler/dex/verification_results.cc')
-rw-r--r-- | compiler/dex/verification_results.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/dex/verification_results.cc b/compiler/dex/verification_results.cc index dd947d90b7..5a34efb73c 100644 --- a/compiler/dex/verification_results.cc +++ b/compiler/dex/verification_results.cc @@ -97,7 +97,7 @@ void VerificationResults::ProcessVerifiedMethod(verifier::MethodVerifier* method } } -const VerifiedMethod* VerificationResults::GetVerifiedMethod(MethodReference ref) { +const VerifiedMethod* VerificationResults::GetVerifiedMethod(MethodReference ref) const { const VerifiedMethod* ret = nullptr; if (atomic_verified_methods_.Get(ref, &ret)) { return ret; @@ -129,13 +129,13 @@ void VerificationResults::AddRejectedClass(ClassReference ref) { DCHECK(IsClassRejected(ref)); } -bool VerificationResults::IsClassRejected(ClassReference ref) { +bool VerificationResults::IsClassRejected(ClassReference ref) const { ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); return (rejected_classes_.find(ref) != rejected_classes_.end()); } bool VerificationResults::IsCandidateForCompilation(MethodReference&, - const uint32_t access_flags) { + const uint32_t access_flags) const { if (!compiler_options_->IsAotCompilationEnabled()) { return false; } |