summaryrefslogtreecommitdiff
path: root/compiler/dex/quick_compiler_callbacks.h
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-01-22 23:02:45 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-01-22 23:02:45 +0000
commitb3c0b5229d2e224e7c895660ed9ba258e4d7a51c (patch)
tree9a43d80a1ee0fc6deb1363fc164f20fea4b7ff25 /compiler/dex/quick_compiler_callbacks.h
parent7b4c09a39fd1b43995aa6d68958113463bc5b82b (diff)
parente993458e8192b24621cb88a6ebcdbfd66f01da45 (diff)
Merge "ART: Allow oatstatus verification for app dependencies"
Diffstat (limited to 'compiler/dex/quick_compiler_callbacks.h')
-rw-r--r--compiler/dex/quick_compiler_callbacks.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler/dex/quick_compiler_callbacks.h b/compiler/dex/quick_compiler_callbacks.h
index 6d22f955a3..8a07e9c12c 100644
--- a/compiler/dex/quick_compiler_callbacks.h
+++ b/compiler/dex/quick_compiler_callbacks.h
@@ -23,12 +23,13 @@
namespace art {
class CompilerDriver;
+class DexFile;
class VerificationResults;
class QuickCompilerCallbacks FINAL : public CompilerCallbacks {
public:
explicit QuickCompilerCallbacks(CompilerCallbacks::CallbackMode mode)
- : CompilerCallbacks(mode) {}
+ : CompilerCallbacks(mode), dex_files_(nullptr) {}
~QuickCompilerCallbacks() { }
@@ -65,11 +66,19 @@ class QuickCompilerCallbacks FINAL : public CompilerCallbacks {
void UpdateClassState(ClassReference ref, ClassStatus state) OVERRIDE;
+ bool CanUseOatStatusForVerification(mirror::Class* klass) OVERRIDE
+ REQUIRES_SHARED(Locks::mutator_lock_);
+
+ void SetDexFiles(const std::vector<const DexFile*>* dex_files) {
+ dex_files_ = dex_files;
+ }
+
private:
VerificationResults* verification_results_ = nullptr;
bool does_class_unloading_ = false;
CompilerDriver* compiler_driver_ = nullptr;
std::unique_ptr<verifier::VerifierDeps> verifier_deps_;
+ const std::vector<const DexFile*>* dex_files_;
};
} // namespace art