From cd0f38fcbda3e578ac27e483a1ffb7718f83fb7a Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Mon, 15 Oct 2018 09:44:35 -0700 Subject: Add logic to eagerly resolve const-string for startup methods Added dex2oat option --resolve-startup-const-strings= If true, this option causes the compiler driver to resolve all const-strings that are referenced from methods marked as "startup" in the profile. Bug: 116059983 Test: test-art-host Change-Id: I61cf9e945c125671fc4ab4b50458a911318a837f --- compiler/driver/compiler_options.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/driver/compiler_options.cc') diff --git a/compiler/driver/compiler_options.cc b/compiler/driver/compiler_options.cc index 3ab9afc5d6..6b0e45629b 100644 --- a/compiler/driver/compiler_options.cc +++ b/compiler/driver/compiler_options.cc @@ -69,6 +69,7 @@ CompilerOptions::CompilerOptions() force_determinism_(false), deduplicate_code_(true), count_hotness_in_compiled_code_(false), + resolve_startup_const_strings_(false), register_allocation_strategy_(RegisterAllocator::kRegisterAllocatorDefault), passes_to_run_(nullptr) { } -- cgit v1.2.3-59-g8ed1b