Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 62501d7a70842686f5fef7b2b0cd0bc3b2beda70..84f2f38e3c882e37387c584f41578ee8278ab183 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -1078,6 +1078,23 @@ void MacroAssembler::LeaveFrame(StackFrame::Type type) { |
leave(); |
} |
+void MacroAssembler::EnterBuiltinFrame(Register context, Register target, |
+ Register argc) { |
+ Push(ebp); |
+ Move(ebp, esp); |
+ Push(context); |
+ Push(target); |
+ Push(argc); |
+} |
+ |
+void MacroAssembler::LeaveBuiltinFrame(Register context, Register target, |
+ Register argc) { |
+ Pop(argc); |
+ Pop(target); |
+ Pop(context); |
+ leave(); |
+} |
+ |
void MacroAssembler::EnterExitFramePrologue(StackFrame::Type frame_type) { |
DCHECK(frame_type == StackFrame::EXIT || |
frame_type == StackFrame::BUILTIN_EXIT); |