Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index bcc985ac5a074e9ae14892d159e5c7cd1afd52b4..e2216d10c8344840c119ae23c753d64041ea11c8 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -863,7 +863,7 @@ void MacroAssembler::Prologue(PrologueFrameMode frame_mode) { |
stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); |
Push(Smi::FromInt(StackFrame::STUB)); |
// Adjust FP to point to saved FP. |
- add(fp, sp, Operand(2 * kPointerSize)); |
+ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
} else { |
PredictableCodeSizeScope predictible_code_size_scope( |
this, kNoCodeAgeSequenceLength * Assembler::kInstrSize); |
@@ -879,7 +879,7 @@ void MacroAssembler::Prologue(PrologueFrameMode frame_mode) { |
stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); |
nop(ip.code()); |
// Adjust FP to point to saved FP. |
- add(fp, sp, Operand(2 * kPointerSize)); |
+ add(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
} |
} |
} |
@@ -892,7 +892,9 @@ void MacroAssembler::EnterFrame(StackFrame::Type type) { |
push(ip); |
mov(ip, Operand(CodeObject())); |
push(ip); |
- add(fp, sp, Operand(3 * kPointerSize)); // Adjust FP to point to saved FP. |
+ // Adjust FP to point to saved FP. |
+ add(fp, sp, |
+ Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); |
} |