From d0af56cdb1eaebea403e382257bdc14d7b7fdaa4 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Fri, 17 Feb 2017 12:56:25 -0800 Subject: Make dex2oat support profiles passed to non profile filters Using a non profile filter with an input profile should compile everything but generate an app image and optimize layout based on the profile. Change UseProfileGuidedCompilation to use the profile arguments. Using profile arguments instead of being based on the compiler filter lets us do full speed compile and layout based on profile. Fix ShouldCompileBasedOnProfile to use the compiler filter instead of the existence of a profile. Fixed gtests. Test: test-art-host Bug: 34927277 Change-Id: I325a10d2072ed427bb32f96e4efa54cf81e94ad3 --- compiler/common_compiler_test.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/common_compiler_test.h') diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h index 0d45a50053..98dcf20714 100644 --- a/compiler/common_compiler_test.h +++ b/compiler/common_compiler_test.h @@ -77,6 +77,10 @@ class CommonCompilerTest : public CommonRuntimeTest { virtual ProfileCompilationInfo* GetProfileCompilationInfo(); + virtual CompilerFilter::Filter GetCompilerFilter() const { + return CompilerFilter::kDefaultCompilerFilter; + } + virtual void TearDown(); void CompileClass(mirror::ClassLoader* class_loader, const char* class_name) -- cgit v1.2.3-59-g8ed1b