summaryrefslogtreecommitdiff
path: root/compiler/debug
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2018-05-30 22:51:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-05-30 22:51:34 +0000
commitf5fc6bcdd98f50807756347ac19e8565bce3b6b5 (patch)
treec8e982bf060f98fb16e95949a94042f0f224361a /compiler/debug
parent3b562b18ba6128b20d0660ab3823f55a5191b04e (diff)
parent21d45b4f4ef3661ac33d622aaac5dd6d2ce7deb8 (diff)
Merge "Simplify DexRegisterMap API."
Diffstat (limited to 'compiler/debug')
-rw-r--r--compiler/debug/elf_debug_loc_writer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/debug/elf_debug_loc_writer.h b/compiler/debug/elf_debug_loc_writer.h
index c1bf915212..8cb4e55bbc 100644
--- a/compiler/debug/elf_debug_loc_writer.h
+++ b/compiler/debug/elf_debug_loc_writer.h
@@ -149,11 +149,9 @@ static std::vector<VariableLocation> GetVariableLocations(
DexRegisterMap dex_register_map = dex_register_maps[stack_map_index];
DCHECK(dex_register_map.IsValid());
CodeItemDataAccessor accessor(*method_info->dex_file, method_info->code_item);
- reg_lo = dex_register_map.GetDexRegisterLocation(
- vreg, accessor.RegistersSize(), code_info);
+ reg_lo = dex_register_map.GetDexRegisterLocation(vreg);
if (is64bitValue) {
- reg_hi = dex_register_map.GetDexRegisterLocation(
- vreg + 1, accessor.RegistersSize(), code_info);
+ reg_hi = dex_register_map.GetDexRegisterLocation(vreg + 1);
}
// Add location entry for this address range.