diff options
author | 2021-07-14 14:59:25 +0100 | |
---|---|---|
committer | 2021-07-14 17:13:08 +0000 | |
commit | 9e050ab1a061d9660eb0c1daa01a823ad75b0f05 (patch) | |
tree | 714f2ba3b11406310416e85357f45450634846b2 /compiler/common_compiler_test.cc | |
parent | 4f990714b13e0b4446305a5411648a1a9ae42a7a (diff) |
Remove the need of VerifiedMethod in the compiler.
The compiler only needs to know if a method is compilable or not. So
just record a set of uncompilable methods (in some cases, we cannot have
an ArtMethod, but the method can still be compiled).
Test: test.py
Bug: 28313047
Change-Id: Ic4235bc8160ec91daa5ebf6504741089b43e99cb
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 9170a8555a..1b69f2a1d4 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -209,8 +209,7 @@ void CommonCompilerTestImpl::OverrideInstructionSetFeatures(InstructionSet instr void CommonCompilerTestImpl::SetUpRuntimeOptionsImpl() { compiler_options_.reset(new CompilerOptions); - verification_results_.reset(new VerificationResults(compiler_options_.get())); - + verification_results_.reset(new VerificationResults()); ApplyInstructionSet(); } @@ -251,9 +250,6 @@ void CommonCompilerTestImpl::CompileMethod(ArtMethod* method) { dex_file, dex_cache); } else { - verification_results_->AddDexFile(&dex_file); - verification_results_->CreateVerifiedMethodFor( - MethodReference(&dex_file, method->GetDexMethodIndex())); compiled_method = compiler->Compile(method->GetCodeItem(), method->GetAccessFlags(), method->GetInvokeType(), |