From 9e050ab1a061d9660eb0c1daa01a823ad75b0f05 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 14 Jul 2021 14:59:25 +0100 Subject: 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 --- runtime/compiler_callbacks.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/compiler_callbacks.h') diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h index 18632dc6c6..23379a9550 100644 --- a/runtime/compiler_callbacks.h +++ b/runtime/compiler_callbacks.h @@ -19,6 +19,7 @@ #include "base/locks.h" #include "dex/class_reference.h" +#include "dex/method_reference.h" #include "class_status.h" namespace art { @@ -33,7 +34,6 @@ class Class; namespace verifier { -class MethodVerifier; class VerifierDeps; } // namespace verifier @@ -47,8 +47,7 @@ class CompilerCallbacks { virtual ~CompilerCallbacks() { } - virtual void MethodVerified(verifier::MethodVerifier* verifier) - REQUIRES_SHARED(Locks::mutator_lock_) = 0; + virtual void AddUncompilableMethod(MethodReference ref) = 0; virtual void ClassRejected(ClassReference ref) = 0; virtual verifier::VerifierDeps* GetVerifierDeps() const = 0; -- cgit v1.2.3-59-g8ed1b