summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/art_method.cc10
-rw-r--r--runtime/art_method.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc
index 26839ece11..6044a2a334 100644
--- a/runtime/art_method.cc
+++ b/runtime/art_method.cc
@@ -224,7 +224,7 @@ uint32_t ArtMethod::ToDexPc(const uintptr_t pc, bool abort_on_failure) {
}
uintptr_t ArtMethod::ToNativeQuickPc(const uint32_t dex_pc,
- bool is_catch_handler,
+ bool is_for_catch_handler,
bool abort_on_failure) {
const void* entry_point = GetQuickOatEntryPoint(sizeof(void*));
if (IsOptimized(sizeof(void*))) {
@@ -234,11 +234,11 @@ uintptr_t ArtMethod::ToNativeQuickPc(const uint32_t dex_pc,
StackMapEncoding encoding = code_info.ExtractEncoding();
// All stack maps are stored in the same CodeItem section, safepoint stack
- // maps first, then catch stack maps. We use `is_catch_dex_pc` to select the
- // order of iteration.
+ // maps first, then catch stack maps. We use `is_for_catch_handler` to select
+ // the order of iteration.
StackMap stack_map =
- LIKELY(is_catch_handler) ? code_info.GetCatchStackMapForDexPc(dex_pc, encoding)
- : code_info.GetStackMapForDexPc(dex_pc, encoding);
+ LIKELY(is_for_catch_handler) ? code_info.GetCatchStackMapForDexPc(dex_pc, encoding)
+ : code_info.GetStackMapForDexPc(dex_pc, encoding);
if (stack_map.IsValid()) {
return reinterpret_cast<uintptr_t>(entry_point) + stack_map.GetNativePcOffset(encoding);
}
diff --git a/runtime/art_method.h b/runtime/art_method.h
index 6c3b13f0e0..9ee8ee69f1 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -443,7 +443,7 @@ class ArtMethod FINAL {
// Converts a dex PC to a native PC.
uintptr_t ToNativeQuickPc(const uint32_t dex_pc,
- bool is_catch_handler,
+ bool is_for_catch_handler,
bool abort_on_failure = true)
SHARED_REQUIRES(Locks::mutator_lock_);