summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2021-07-14 14:59:25 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2021-07-14 17:13:08 +0000
commit9e050ab1a061d9660eb0c1daa01a823ad75b0f05 (patch)
tree714f2ba3b11406310416e85357f45450634846b2 /compiler/common_compiler_test.cc
parent4f990714b13e0b4446305a5411648a1a9ae42a7a (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.cc6
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(),