diff options
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 12 |
1 files changed, 11 insertions, 1 deletions
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_; } |