Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index c82ef8d81b3c9274672970b06642aea6884d29e6..8cc32021b400f0f5bde309ece9da464b3e9448fe 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -143,14 +143,7 @@ bool LCodeGen::GeneratePrologue() { |
if (NeedsEagerFrame()) { |
ASSERT(!frame_is_built_); |
frame_is_built_ = true; |
- __ push(rbp); // Caller's frame pointer. |
- __ movq(rbp, rsp); |
- __ push(rsi); // Callee's context. |
- if (info()->IsStub()) { |
- __ Push(Smi::FromInt(StackFrame::STUB)); |
- } else { |
- __ push(rdi); // Callee's JS function. |
- } |
+ __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); |
info()->AddNoFrameRange(0, masm_->pc_offset()); |
} |