summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2016-01-19 19:34:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-01-19 19:34:40 +0000
commitf74388daf23522dd4e9ebe6640030f4fd52c52ea (patch)
treefe07a7150fbe132bdc7d78f62dbe039daf3eaae3 /compiler/common_compiler_test.cc
parentecfd0df971c538456887866307c007c8b0a25470 (diff)
parent877fd963548a3175665bfef25b0d24bc0e5a0135 (diff)
Merge "Improve profile processing"
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r--compiler/common_compiler_test.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index 9594dce029..afc8463878 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -168,6 +168,12 @@ std::unordered_set<std::string>* CommonCompilerTest::GetCompiledMethods() {
return nullptr;
}
+// Get ProfileCompilationInfo that should be passed to the driver.
+ProfileCompilationInfo* CommonCompilerTest::GetProfileCompilationInfo() {
+ // Null, profile information will not be taken into account.
+ return nullptr;
+}
+
void CommonCompilerTest::SetUp() {
CommonRuntimeTest::SetUp();
{
@@ -207,7 +213,7 @@ void CommonCompilerTest::CreateCompilerDriver(Compiler::Kind kind, InstructionSe
timer_.get(),
-1,
/* dex_to_oat_map */ nullptr,
- /* profile_compilation_info */ nullptr));
+ GetProfileCompilationInfo()));
// We typically don't generate an image in unit tests, disable this optimization by default.
compiler_driver_->SetSupportBootImageFixup(false);
}