diff options
author | 2015-12-09 21:03:23 -0800 | |
---|---|---|
committer | 2015-12-09 21:03:23 -0800 | |
commit | 53e32d14d7a51198c6ef09120c15bafdd1d055c2 (patch) | |
tree | 2386137351c94dcaf0612713134f487fc8f1fdfb /runtime/compiler_callbacks.h | |
parent | 1d97f949e807e963dd92dcf9ac38def5301d555a (diff) |
ART: Refactor verifier callbacks
Change the return type of MethodVerified to void. It was never
used anyways.
Remove the callbacks calls from the core of the verifier (Verify()).
Instead, make the convenience functions do the work, and add a
parameter to supply the callback so that the verifier becomes
independent of the Runtime-stored one.
Fix up calls that now need to provide a callback, but leave places
that only run the verifier to get metadata (e.g., register type data,
lock state) without callback. This avoids callback calls when in JIT
mode.
Bug: 26075442
Change-Id: I2c270f01e4de088771d4d4b19dae4f07d77640f0
Diffstat (limited to 'runtime/compiler_callbacks.h')
-rw-r--r-- | runtime/compiler_callbacks.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h index af7b04f62e..a39d6822aa 100644 --- a/runtime/compiler_callbacks.h +++ b/runtime/compiler_callbacks.h @@ -37,8 +37,8 @@ class CompilerCallbacks { virtual ~CompilerCallbacks() { } - virtual bool MethodVerified(verifier::MethodVerifier* verifier) - SHARED_REQUIRES(Locks::mutator_lock_) = 0; + virtual void MethodVerified(verifier::MethodVerifier* verifier) + SHARED_REQUIRES(Locks::mutator_lock_) = 0; virtual void ClassRejected(ClassReference ref) = 0; // Return true if we should attempt to relocate to a random base address if we have not already |