From 4a200f56b7075309316b04d550c9cc50f8314edd Mon Sep 17 00:00:00 2001 From: Jeff Hao Date: Tue, 1 Apr 2014 14:58:49 -0700 Subject: Add support for -Xverify:none mode. This mode skips all verification and compilation. Public bug: https://code.google.com/p/android/issues/detail?id=67664 Change-Id: Idd00ab8e9e46d129c02988b063c41a507e07bf5b --- compiler/driver/compiler_options.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 0cca1e9705..20c6bc8e4e 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -22,7 +22,8 @@ namespace art { class CompilerOptions { public: enum CompilerFilter { - kInterpretOnly, // Compile nothing. + kVerifyNone, // Skip verification and compile nothing except JNI stubs. + kInterpretOnly, // Compile nothing except JNI stubs. kProfiled, // Compile based on profile. kSpace, // Maximize space savings. kBalanced, // Try to get the best performance return on compilation investment. @@ -86,6 +87,15 @@ class CompilerOptions { compiler_filter_ = compiler_filter; } + bool IsCompilationEnabled() const { + return ((compiler_filter_ != CompilerOptions::kVerifyNone) && + (compiler_filter_ != CompilerOptions::kInterpretOnly)); + } + + bool IsVerificationEnabled() const { + return (compiler_filter_ != CompilerOptions::kVerifyNone); + } + size_t GetHugeMethodThreshold() const { return huge_method_threshold_; } -- cgit v1.2.3-59-g8ed1b