Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 930afcb72abe8787d51955d2ca41235c27bd74ea..fe6ce1e4a9be365640b65c9dcab861a24490fd91 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -4516,7 +4516,7 @@ void MacroAssembler::Prologue(PrologueFrameMode frame_mode) { |
Push(ra, fp, cp); |
Push(Smi::FromInt(StackFrame::STUB)); |
// Adjust FP to point to saved FP. |
- Addu(fp, sp, Operand(2 * kPointerSize)); |
+ Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
} else { |
PredictableCodeSizeScope predictible_code_size_scope( |
this, kNoCodeAgeSequenceLength * Assembler::kInstrSize); |
@@ -4539,7 +4539,7 @@ void MacroAssembler::Prologue(PrologueFrameMode frame_mode) { |
Push(ra, fp, cp, a1); |
nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
// Adjust fp to point to caller's fp. |
- Addu(fp, sp, Operand(2 * kPointerSize)); |
+ Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
} |
} |
} |
@@ -4554,7 +4554,9 @@ void MacroAssembler::EnterFrame(StackFrame::Type type) { |
sw(cp, MemOperand(sp, 2 * kPointerSize)); |
sw(t8, MemOperand(sp, 1 * kPointerSize)); |
sw(t9, MemOperand(sp, 0 * kPointerSize)); |
- addiu(fp, sp, 3 * kPointerSize); |
+ // Adjust FP to point to saved FP. |
+ Addu(fp, sp, |
+ Operand(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize)); |
} |