From 44ca0754b3c6f11303bac876a9175bbfa95609ef Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 29 Jul 2019 10:18:25 +0100 Subject: Compiler changes for boot image extension. Test: m test-art-host-gtest Test: testrunnner.py --host --optimizing Test: aosp_taimen-userdebug boots. Test: run-gtest.sh Test: testrunner.py --target --optimizing Change-Id: I8e999c96ec908f26d8c529edc9d2a3be49a9379a --- compiler/driver/compiler_options.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 98b15dc174..e24da593a7 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -72,6 +72,7 @@ class CompilerOptions final { enum class ImageType : uint8_t { kNone, // JIT or AOT app compilation producing only an oat file but no image. kBootImage, // Creating boot image. + kBootImageExtension, // Creating boot image extension. kAppImage, // Creating app image. kApexBootImage, // Creating the apex image for jit/zygote experiment b/119800099. }; @@ -200,6 +201,11 @@ class CompilerOptions final { return image_type_ == ImageType::kApexBootImage; } + // Are we compiling a boot image extension? + bool IsBootImageExtension() const { + return image_type_ == ImageType::kBootImageExtension; + } + bool IsBaseline() const { return baseline_; } -- cgit v1.2.3-59-g8ed1b