From acc56ac6a33a23abbf4a9a62528e352ea28c5407 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 9 Oct 2018 08:45:24 +0100 Subject: Introduce a 'baseline' variant for the compiler. Implemented as a stripped down version of the optimizing compiler, not running any optimization. Adjust code to still work with expectations in code generators. bug: 111397239 Test: test.py --baseline Change-Id: I4328283825f9a890616e7496ed4c1e77d6bcc5dd --- compiler/driver/compiler_options.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 34aceba1c4..e9cbf74428 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -193,6 +193,10 @@ class CompilerOptions final { return boot_image_; } + bool IsBaseline() const { + return baseline_; + } + // Are we compiling a core image (small boot image only used for ART testing)? bool IsCoreImage() const { // Ensure that `core_image_` => `boot_image_`. @@ -346,6 +350,7 @@ class CompilerOptions final { bool boot_image_; bool core_image_; bool app_image_; + bool baseline_; bool debuggable_; bool generate_debug_info_; bool generate_mini_debug_info_; -- cgit v1.2.3-59-g8ed1b