summaryrefslogtreecommitdiff
path: root/runtime/compiler_callbacks.h
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 /runtime/compiler_callbacks.h
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 'runtime/compiler_callbacks.h')
-rw-r--r--runtime/compiler_callbacks.h5
1 files changed, 2 insertions, 3 deletions
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;