Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 2c6e5a501af061844956d05a03fc01884f993481..f54d4a5b0cd9b8faf260937b28726da3d81bfd33 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -133,21 +133,7 @@ bool LCodeGen::GeneratePrologue() { |
info()->set_prologue_offset(masm_->pc_offset()); |
if (NeedsEagerFrame()) { |
- if (info()->IsStub()) { |
- __ Push(ra, fp, cp); |
- __ Push(Smi::FromInt(StackFrame::STUB)); |
- // Adjust FP to point to saved FP. |
- __ Addu(fp, sp, Operand(2 * kPointerSize)); |
- } else { |
- // The following three instructions must remain together and unmodified |
- // for code aging to work properly. |
- __ Push(ra, fp, cp, a1); |
- // Add unused nop to ensure prologue sequence is identical for |
- // full-codegen and lithium-codegen. |
- __ nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
- // Adj. FP to point to saved FP. |
- __ Addu(fp, sp, Operand(2 * kPointerSize)); |
- } |
+ __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); |
frame_is_built_ = true; |
info_->AddNoFrameRange(0, masm_->pc_offset()); |
} |