Commit c1e67437 authored by rmcilroy@chromium.org's avatar rmcilroy@chromium.org

[Arm]: Fix liveedit support if --enable_ool_constant_pool is true.

If the out of line constant pool is enabled, there is an extra value on the stack frame (the
constant pool pointer).  This change fixes GenerateFrameDropperLiveEdit to pull the function
pointer and pop the stack frame correctly whether or not the constant pool pointer is on the
frame.

R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/338053003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22084 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d1190c50
...@@ -298,11 +298,15 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { ...@@ -298,11 +298,15 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
__ mov(r1, Operand::Zero()); __ mov(r1, Operand::Zero());
__ str(r1, MemOperand(ip, 0)); __ str(r1, MemOperand(ip, 0));
// We do not know our frame height, but set sp based on fp. // Load the function pointer off of our current stack frame.
__ sub(sp, fp, Operand(kPointerSize)); __ ldr(r1, MemOperand(fp,
StandardFrameConstants::kConstantPoolOffset - kPointerSize));
__ Pop(lr, fp, r1); // Return address, Frame, Function. // Pop return address, frame and constant pool pointer (if
// FLAG_enable_ool_constant_pool).
__ LeaveFrame(StackFrame::INTERNAL);
{ ConstantPoolUnavailableScope constant_pool_unavailable(masm);
// Load context from the function. // Load context from the function.
__ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
...@@ -313,6 +317,7 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { ...@@ -313,6 +317,7 @@ void DebugCodegen::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
// Re-run JSFunction, r1 is function, cp is context. // Re-run JSFunction, r1 is function, cp is context.
__ Jump(ip); __ Jump(ip);
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment