diff options
| author | 2017-08-11 10:26:39 +0000 | |
|---|---|---|
| committer | 2017-08-11 10:26:39 +0000 | |
| commit | 54636c0e85ad1bcd5798324c0484122364e99298 (patch) | |
| tree | 6ec47505bdb6dd232cf43b86eb9d2c438d2f052f /compiler/driver/compiler_options.h | |
| parent | abafaf83838301b83832c33324d683e7f77aff76 (diff) | |
| parent | 2b03a1f24600c8c9558fb13d3f8bca1ef0f8ee40 (diff) | |
Merge "Instrument ARM64 generated code to check the Marking Register."
Diffstat (limited to 'compiler/driver/compiler_options.h')
| -rw-r--r-- | compiler/driver/compiler_options.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index b99263db0e..1e05c4e9aa 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -161,6 +161,9 @@ class CompilerOptions FINAL { return generate_mini_debug_info_; } + // Should run-time checks be emitted in debug mode? + bool EmitRunTimeChecksInDebugMode() const; + bool GetGenerateBuildId() const { return generate_build_id_; } @@ -177,10 +180,19 @@ class CompilerOptions FINAL { return implicit_suspend_checks_; } + // Are we compiling a boot image? bool IsBootImage() const { return boot_image_; } + // Are we compiling a core image (small boot image only used for ART testing)? + bool IsCoreImage() const { + // Ensure that `core_image_` => `boot_image_`. + DCHECK(!core_image_ || boot_image_); + return core_image_; + } + + // Are we compiling an app image? bool IsAppImage() const { return app_image_; } @@ -266,6 +278,7 @@ class CompilerOptions FINAL { const std::vector<const DexFile*>* no_inline_from_; bool boot_image_; + bool core_image_; bool app_image_; // When using a profile file only the top K% of the profiled samples will be compiled. double top_k_profile_threshold_; |