summaryrefslogtreecommitdiff
path: root/compiler/dex/verified_method.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2015-04-16 15:41:02 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-04-16 15:41:03 +0000
commit8aec061f5e58876bcc892d8c0309bc13b5349f5c (patch)
tree468528f9081cc33299317a3fa62cfc6d84c224e8 /compiler/dex/verified_method.h
parentf90b8548e91392dfc24e8b0f7d3000f4f121c19d (diff)
parentf1c6d9e87cbfd27702103ccc7c7f08ce784dc872 (diff)
Merge "Fallback to quick in case of soft verification errors"
Diffstat (limited to 'compiler/dex/verified_method.h')
-rw-r--r--compiler/dex/verified_method.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/dex/verified_method.h b/compiler/dex/verified_method.h
index 954cbf4b26..437ae52437 100644
--- a/compiler/dex/verified_method.h
+++ b/compiler/dex/verified_method.h
@@ -70,6 +70,11 @@ class VerifiedMethod {
// by using the check-cast elision peephole optimization in the verifier.
bool IsSafeCast(uint32_t pc) const;
+ // Returns true if there were any errors during verification.
+ bool HasVerificationFailures() const {
+ return has_verification_failures_;
+ }
+
private:
VerifiedMethod() = default;
@@ -107,6 +112,8 @@ class VerifiedMethod {
// dex PC to dex method index or dex field index based on the instruction.
DequickenMap dequicken_map_;
SafeCastSet safe_cast_set_;
+
+ bool has_verification_failures_;
};
} // namespace art