From 3bc01748ef1c3e43361bdf520947a9d656658bf8 Mon Sep 17 00:00:00 2001 From: Razvan A Lupusoru Date: Thu, 6 Feb 2014 13:18:43 -0800 Subject: GenSpecialCase support for x86 Moved GenSpecialCase from being ARM specific to common code to allow it to be used by x86 quick as well. Change-Id: I728733e8f4c4da99af6091ef77e5c76ae0fee850 Signed-off-by: Razvan A Lupusoru --- runtime/stack.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'runtime/stack.h') 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); } } + static int GetOutVROffset(uint16_t out_num) { + // According to stack model, the first out is above the Method ptr. + return sizeof(StackReference) + (out_num * sizeof(uint32_t)); + } + uintptr_t GetCurrentQuickFramePc() const { return cur_quick_frame_pc_; } -- cgit v1.1