Make explicit which methods retrieve info about *hot* methods
Rename some methods to better highlight that they refer to hot methods and not
to any method (e.g. a non-hot, startup methods).
Bug: 139884006
Test: m test-art-host
Change-Id: Ieb3a36c434104d1cde28ca18a5b335cc8a24e537
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index 0922b42..d57b916 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -692,9 +692,8 @@
}
std::unique_ptr<ProfileCompilationInfo::OfflineProfileMethodInfo> offline_profile =
- pci->GetMethod(caller_dex_file.GetLocation(),
- caller_dex_file.GetLocationChecksum(),
- caller_compilation_unit_.GetDexMethodIndex());
+ pci->GetHotMethodInfo(MethodReference(
+ &caller_dex_file, caller_compilation_unit_.GetDexMethodIndex()));
if (offline_profile == nullptr) {
return kInlineCacheNoData; // no profile information for this invocation.
}