diff options
author | David Srbecky <dsrbecky@google.com> | 2020-03-31 20:52:09 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2020-04-01 17:19:07 +0100 |
commit | 4fa07a5727551018e2dcd93d41dac98f20212e99 (patch) | |
tree | 8214358e517601c67706a4fbbb4010408a45780a /compiler/driver/compiler_options.h | |
parent | d31def587a914c1d306355a7331c24d7b13ad5ca (diff) |
Add explicit compiler option to enable test-specific features.
We can no longer rely on checking the "core.art" image name,
since we plan to remove it and use the shipped boot image.
This option enables test-specific features, such as $noinline$.
Test: ./art/test.py -r --optimizing --64
Bug: 147817558
Change-Id: Iadac6e1b0f46e83efd0551fb8462a6b268ad33d8
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 639c5475e8..6cdb821e6e 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -218,11 +218,10 @@ class CompilerOptions final { return image_type_ == ImageType::kAppImage; } - // Returns whether we are compiling against a "core" image, which - // is an indicative we are running tests. The compiler will use that - // information for checking invariants. - bool CompilingWithCoreImage() const { - return compiling_with_core_image_; + // Returns whether we are running ART tests. + // The compiler will use that information for checking invariants. + bool CompileArtTest() const { + return compile_art_test_; } // Should the code be compiled as position independent? @@ -367,10 +366,6 @@ class CompilerOptions final { return initialize_app_image_classes_; } - // Is `boot_image_filename` the name of a core image (small boot - // image used for ART testing only)? - static bool IsCoreImageFilename(const std::string& boot_image_filename); - private: bool ParseDumpInitFailures(const std::string& option, std::string* error_msg); bool ParseRegisterAllocationStrategy(const std::string& option, std::string* error_msg); @@ -400,7 +395,7 @@ class CompilerOptions final { const VerificationResults* verification_results_; ImageType image_type_; - bool compiling_with_core_image_; + bool compile_art_test_; bool baseline_; bool debuggable_; bool generate_debug_info_; |