Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 15bfba3ce61c4454586e6d776833eb975b93109c..a15523e7306827be7d2c21b3b50fe8722cbb5ff9 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -119,6 +119,7 @@ class JumpPatchSite BASE_EMBEDDED { |
// The live registers are: |
// o r1: the JS function object being called (i.e., ourselves) |
// o cp: our context |
+// o pp: our caller's constant pool pointer (if FLAG_enable_ool_constant_pool) |
// o fp: our caller's frame pointer |
// o sp: stack pointer |
// o lr: return address |
@@ -436,11 +437,10 @@ void FullCodeGenerator::EmitReturnSequence() { |
// TODO(svenpanne) The code below is sometimes 4 words, sometimes 5! |
PredictableCodeSizeScope predictable(masm_, -1); |
__ RecordJSReturn(); |
- masm_->mov(sp, fp); |
int no_frame_start = masm_->pc_offset(); |
Rodolph Perfetta
2013/11/27 20:09:41
previously no_frame_start didn't include the mov.
rmcilroy
2013/11/28 11:32:26
Yes, I wasn't sure on the implications this would
|
- masm_->ldm(ia_w, sp, fp.bit() | lr.bit()); |
- masm_->add(sp, sp, Operand(sp_delta)); |
- masm_->Jump(lr); |
+ __ LeaveFrame(StackFrame::JAVA_SCRIPT); |
+ __ add(sp, sp, Operand(sp_delta)); |
+ __ Jump(lr); |
info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
} |
@@ -2164,11 +2164,12 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
__ bind(&resume_frame); |
// lr = return address. |
// fp = caller's frame pointer. |
+ // pp = caller's constant pool (if FLAG_enable_ool_constant_pool), |
// cp = callee's context, |
// r4 = callee's JS function. |
- __ Push(lr, fp, cp, r4); |
+ __ PushFixedFrame(r4); |
// Adjust FP to point to saved FP. |
- __ add(fp, sp, Operand(2 * kPointerSize)); |
+ __ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
// Load the operand stack size. |
__ ldr(r3, FieldMemOperand(r1, JSGeneratorObject::kOperandStackOffset)); |