summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver_test.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-06-15 20:21:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-06-15 20:21:24 +0000
commita5dcdf346158d47bfe80d8adb29b1b020cede286 (patch)
tree50e56b3445dc8e4724d6707ffecd23f9dae96e31 /compiler/driver/compiler_driver_test.cc
parent942c597b004aa328cf291a78392b405ef5d5f040 (diff)
parentbbe3a5efcdfb2fb15a4e5f724cc323ae0ada5111 (diff)
Merge "Refactor some profiling info functions"
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
-rw-r--r--compiler/driver/compiler_driver_test.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc
index 1329fddc79..b4ad325822 100644
--- a/compiler/driver/compiler_driver_test.cc
+++ b/compiler/driver/compiler_driver_test.cc
@@ -236,14 +236,10 @@ class CompilerDriverProfileTest : public CompilerDriverTest {
ProfileCompilationInfo info;
for (const std::unique_ptr<const DexFile>& dex_file : dex_files) {
- profile_info_.AddMethodIndex(dex_file->GetLocation(),
- dex_file->GetLocationChecksum(),
- 1,
- dex_file->NumMethodIds());
- profile_info_.AddMethodIndex(dex_file->GetLocation(),
- dex_file->GetLocationChecksum(),
- 2,
- dex_file->NumMethodIds());
+ profile_info_.AddMethodIndex(ProfileCompilationInfo::MethodHotness::kFlagHot,
+ MethodReference(dex_file.get(), 1));
+ profile_info_.AddMethodIndex(ProfileCompilationInfo::MethodHotness::kFlagHot,
+ MethodReference(dex_file.get(), 2));
}
return &profile_info_;
}