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
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index 9170a85..1b69f2a 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -209,8 +209,7 @@
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 @@
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(),