summaryrefslogtreecommitdiff
path: root/compiler/dex/quick_compiler_callbacks.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2017-08-09 10:05:47 -0700
committer Mathieu Chartier <mathieuc@google.com> 2017-08-09 11:16:52 -0700
commit9e050df94df5c6736e1e24705194f62fbc119114 (patch)
tree0fe2c2a7a9e01cba8abaf449938503e5b906ee78 /compiler/dex/quick_compiler_callbacks.h
parent1bd8e5a1b2055e0ff7977ba7e149534d2ee0a696 (diff)
Revert "Revert "Support class unloading in dex2oat for quicken multidex""
Bug: 63467744 Test: test-art-host This reverts commit 6921d90a241f0307ac25120f8f976744d4a57706. Change-Id: If70e31d3a15579dc75fd40bfef186e0124568c87
Diffstat (limited to 'compiler/dex/quick_compiler_callbacks.h')
-rw-r--r--compiler/dex/quick_compiler_callbacks.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/dex/quick_compiler_callbacks.h b/compiler/dex/quick_compiler_callbacks.h
index a3a6c0972c..578aff45e5 100644
--- a/compiler/dex/quick_compiler_callbacks.h
+++ b/compiler/dex/quick_compiler_callbacks.h
@@ -22,6 +22,7 @@
namespace art {
+class CompilerDriver;
class VerificationResults;
class QuickCompilerCallbacks FINAL : public CompilerCallbacks {
@@ -53,8 +54,19 @@ class QuickCompilerCallbacks FINAL : public CompilerCallbacks {
verification_results_ = verification_results;
}
+ bool CanAssumeVerified(ClassReference ref) OVERRIDE;
+
+ void SetDoesClassUnloading(bool does_class_unloading, CompilerDriver* compiler_driver)
+ OVERRIDE {
+ does_class_unloading_ = does_class_unloading;
+ compiler_driver_ = compiler_driver;
+ DCHECK(!does_class_unloading || compiler_driver_ != nullptr);
+ }
+
private:
VerificationResults* verification_results_ = nullptr;
+ bool does_class_unloading_ = false;
+ CompilerDriver* compiler_driver_ = nullptr;
std::unique_ptr<verifier::VerifierDeps> verifier_deps_;
};