diff options
author | David Srbecky <dsrbecky@google.com> | 2018-06-03 12:00:22 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2018-06-07 12:00:18 +0100 |
commit | fd89b0739d4000ea70f28bf53dea531027024f5a (patch) | |
tree | 1c9f3e1b046d60df405fb63f04cf83d3be4ff0f5 /runtime/jit | |
parent | 6de8833fb64e59301eada4005ed04da995796170 (diff) | |
download | art-fd89b0739d4000ea70f28bf53dea531027024f5a.tar.gz art-fd89b0739d4000ea70f28bf53dea531027024f5a.tar.bz2 art-fd89b0739d4000ea70f28bf53dea531027024f5a.zip |
Remove unused GetDexRegisterMap arguments.
They are no longer needed in the new encoding.
I reuse the local variables in most places to DCHECK the size
of the decoded register map. This has one catch though:
We sometimes omit all dex registers, so the DCHECK should be
done only after checking if the map is empty (if applicable).
Test: test-art-host-gtest-stack_map_test
Change-Id: I94b67029842374bc8eb7c9e5eac76fc93a651f24
Diffstat (limited to 'runtime/jit')
-rw-r--r-- | runtime/jit/jit.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc index b7b779ce31..5a5634ef62 100644 --- a/runtime/jit/jit.cc +++ b/runtime/jit/jit.cc @@ -493,8 +493,7 @@ bool Jit::MaybeDoOnStackReplacement(Thread* thread, // We found a stack map, now fill the frame with dex register values from the interpreter's // shadow frame. - DexRegisterMap vreg_map = - code_info.GetDexRegisterMapOf(stack_map, number_of_vregs); + DexRegisterMap vreg_map = code_info.GetDexRegisterMapOf(stack_map); frame_size = osr_method->GetFrameSizeInBytes(); @@ -510,10 +509,11 @@ bool Jit::MaybeDoOnStackReplacement(Thread* thread, memory[0] = method; shadow_frame = thread->PopShadowFrame(); - if (!vreg_map.IsValid()) { + if (vreg_map.empty()) { // If we don't have a dex register map, then there are no live dex registers at // this dex pc. } else { + DCHECK_EQ(vreg_map.size(), number_of_vregs); for (uint16_t vreg = 0; vreg < number_of_vregs; ++vreg) { DexRegisterLocation::Kind location = vreg_map.GetLocationKind(vreg); if (location == DexRegisterLocation::Kind::kNone) { |