diff options
author | 2017-08-31 10:36:31 -0700 | |
---|---|---|
committer | 2017-09-05 10:57:39 -0700 | |
commit | 5d3b002b9a244b5dc25fe97fedcb92851d9073f7 (patch) | |
tree | 46203949455b1087fe36158da75af3af3db127aa /runtime/compiler_callbacks.h | |
parent | ee5303f76ef167714a6a04d3abc502584ac5e103 (diff) |
ART: Change CanAssumeVerified to GetPreviousClassState
Return any stored class state instead of a bool to allow more
recognized states in the future.
Bug: 63467744
Bug: 65318848
Test: m test-art-host
Change-Id: Id097273a41e09ee77c8d53377ad9beb09104a944
Diffstat (limited to 'runtime/compiler_callbacks.h')
-rw-r--r-- | runtime/compiler_callbacks.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/compiler_callbacks.h b/runtime/compiler_callbacks.h index c51bb5e176..9b227141e0 100644 --- a/runtime/compiler_callbacks.h +++ b/runtime/compiler_callbacks.h @@ -19,6 +19,7 @@ #include "base/mutex.h" #include "class_reference.h" +#include "class_status.h" namespace art { @@ -51,8 +52,10 @@ class CompilerCallbacks { virtual verifier::VerifierDeps* GetVerifierDeps() const = 0; virtual void SetVerifierDeps(verifier::VerifierDeps* deps ATTRIBUTE_UNUSED) {} - virtual bool CanAssumeVerified(ClassReference ref ATTRIBUTE_UNUSED) { - return false; + // Return the class status of a previous stage of the compilation. This can be used, for example, + // when class unloading is enabled during multidex compilation. + virtual ClassStatus GetPreviousClassState(ClassReference ref ATTRIBUTE_UNUSED) { + return ClassStatus::kStatusNotReady; } virtual void SetDoesClassUnloading(bool does_class_unloading ATTRIBUTE_UNUSED, |