From 1a8429680f9d08d5f2b49fd93f9ad4df81b7cb66 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 13 Nov 2018 15:09:51 -0800 Subject: Add image compressed blocks Add support for splitting the image into a set of solid blocks. Added dex2oat option --max-image-block-size and correspodning image unit test. Motivation: Enable parallel image decompression in the future. Bug: 116052292 Test: test-art-host Change-Id: I37c6c6a43ef94c4a62bf38a0cf51f26ce06347ac --- compiler/driver/compiler_options.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index f0970a9e0d..17a779c965 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -335,6 +335,14 @@ class CompilerOptions final { return check_profiled_methods_; } + uint32_t MaxImageBlockSize() const { + return max_image_block_size_; + } + + void SetMaxImageBlockSize(uint32_t size) { + max_image_block_size_ = size; + } + private: bool ParseDumpInitFailures(const std::string& option, std::string* error_msg); void ParseDumpCfgPasses(const StringPiece& option, UsageFn Usage); @@ -424,6 +432,9 @@ class CompilerOptions final { // up compiled and are not punted. ProfileMethodsCheck check_profiled_methods_; + // Maximum solid block size in the generated image. + uint32_t max_image_block_size_; + RegisterAllocator::Strategy register_allocation_strategy_; // If not null, specifies optimization passes which will be run instead of defaults. -- cgit v1.2.3-59-g8ed1b