diff options
Diffstat (limited to 'runtime/arch/mips/context_mips.cc')
-rw-r--r-- | runtime/arch/mips/context_mips.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/runtime/arch/mips/context_mips.cc b/runtime/arch/mips/context_mips.cc index 0950e7122d..ad2889135a 100644 --- a/runtime/arch/mips/context_mips.cc +++ b/runtime/arch/mips/context_mips.cc @@ -16,8 +16,9 @@ #include "context_mips.h" -#include "mirror/art_method.h" +#include "mirror/art_method-inl.h" #include "mirror/object-inl.h" +#include "quick/quick_method_frame_info.h" #include "stack.h" namespace art { @@ -41,17 +42,15 @@ void MipsContext::Reset() { void MipsContext::FillCalleeSaves(const StackVisitor& fr) { mirror::ArtMethod* method = fr.GetMethod(); - uint32_t core_spills = method->GetCoreSpillMask(); - uint32_t fp_core_spills = method->GetFpSpillMask(); - size_t spill_count = POPCOUNT(core_spills); - size_t fp_spill_count = POPCOUNT(fp_core_spills); - size_t frame_size = method->GetFrameSizeInBytes(); + const QuickMethodFrameInfo frame_info = method->GetQuickFrameInfo(); + size_t spill_count = POPCOUNT(frame_info.CoreSpillMask()); + size_t fp_spill_count = POPCOUNT(frame_info.FpSpillMask()); if (spill_count > 0) { // Lowest number spill is farthest away, walk registers and fill into context. int j = 1; for (size_t i = 0; i < kNumberOfCoreRegisters; i++) { - if (((core_spills >> i) & 1) != 0) { - gprs_[i] = fr.CalleeSaveAddress(spill_count - j, frame_size); + if (((frame_info.CoreSpillMask() >> i) & 1) != 0) { + gprs_[i] = fr.CalleeSaveAddress(spill_count - j, frame_info.FrameSizeInBytes()); j++; } } @@ -60,8 +59,9 @@ void MipsContext::FillCalleeSaves(const StackVisitor& fr) { // Lowest number spill is farthest away, walk registers and fill into context. int j = 1; for (size_t i = 0; i < kNumberOfFRegisters; i++) { - if (((fp_core_spills >> i) & 1) != 0) { - fprs_[i] = fr.CalleeSaveAddress(spill_count + fp_spill_count - j, frame_size); + if (((frame_info.FpSpillMask() >> i) & 1) != 0) { + fprs_[i] = fr.CalleeSaveAddress(spill_count + fp_spill_count - j, + frame_info.FrameSizeInBytes()); j++; } } |