Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index c3364b19018fb3a28dfb228712de9ef9d5d1f6f1..1a9d70dda5d171537ad23a34166b95c8276f348d 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1130,6 +1130,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); |