summaryrefslogtreecommitdiff
path: root/compiler/dex/verification_results.h
diff options
context:
space:
mode:
author Brian Carlstrom <bdc@google.com> 2014-02-25 04:42:53 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-02-25 04:42:54 +0000
commitfffb0b7e23796e5470f4fab4611f2fcc4a16979c (patch)
tree3c2fd045f635a0511149272af9ff55a01a31b83c /compiler/dex/verification_results.h
parenta0c9b085d4ecf90ca3aa1252e81e65072b377ca4 (diff)
parent6449c62e40ef3a9bb75f664f922555affb532ee4 (diff)
Merge "Create CompilerOptions"
Diffstat (limited to 'compiler/dex/verification_results.h')
-rw-r--r--compiler/dex/verification_results.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/compiler/dex/verification_results.h b/compiler/dex/verification_results.h
index 2eb07131ce..278182f2aa 100644
--- a/compiler/dex/verification_results.h
+++ b/compiler/dex/verification_results.h
@@ -33,11 +33,13 @@ namespace verifier {
class MethodVerifier;
} // namespace verifier
+class CompilerOptions;
class VerifiedMethod;
+// Used by CompilerCallbacks to track verification information from the Runtime.
class VerificationResults {
public:
- VerificationResults();
+ explicit VerificationResults(const CompilerOptions* compiler_options);
~VerificationResults();
bool ProcessVerifiedMethod(verifier::MethodVerifier* method_verifier)
@@ -50,15 +52,17 @@ class VerificationResults {
void AddRejectedClass(ClassReference ref) LOCKS_EXCLUDED(rejected_classes_lock_);
bool IsClassRejected(ClassReference ref) LOCKS_EXCLUDED(rejected_classes_lock_);
- static bool IsCandidateForCompilation(MethodReference& method_ref,
- const uint32_t access_flags);
+ bool IsCandidateForCompilation(MethodReference& method_ref,
+ const uint32_t access_flags);
private:
+ const CompilerOptions* compiler_options_;
+
// Verified methods.
typedef SafeMap<MethodReference, const VerifiedMethod*,
MethodReferenceComparator> VerifiedMethodMap;
ReaderWriterMutex verified_methods_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
- VerifiedMethodMap verified_methods_;
+ VerifiedMethodMap verified_methods_ GUARDED_BY(verified_methods_lock_);
// Rejected classes.
ReaderWriterMutex rejected_classes_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;