diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/stack.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/stack.h b/runtime/stack.h index 8466069..2d56a74 100644 --- a/runtime/stack.h +++ b/runtime/stack.h @@ -654,10 +654,16 @@ class StackVisitor { } else if (reg < num_regs) { return locals_start + (reg * sizeof(uint32_t)); } else { - return frame_size + ((reg - num_regs) * sizeof(uint32_t)) + sizeof(uint32_t); // Dalvik in. + // Handle ins. + return frame_size + ((reg - num_regs) * sizeof(uint32_t)) + sizeof(StackReference<mirror::ArtMethod>); } } + static int GetOutVROffset(uint16_t out_num) { + // According to stack model, the first out is above the Method ptr. + return sizeof(StackReference<mirror::ArtMethod>) + (out_num * sizeof(uint32_t)); + } + uintptr_t GetCurrentQuickFramePc() const { return cur_quick_frame_pc_; } |