Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 573e75db636340aee6cbea7e5b6fe27c7ea5b5c9..1dde10f0783230e71cc1d3eb166e05527d6ed3fc 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -4436,6 +4436,23 @@ void MacroAssembler::LeaveFrame(StackFrame::Type type) { |
popq(rbp); |
} |
+void MacroAssembler::EnterBuiltinFrame(Register context, Register target, |
+ Register argc) { |
+ Push(rbp); |
+ Move(rbp, rsp); |
+ 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(bool save_rax, |
StackFrame::Type frame_type) { |
DCHECK(frame_type == StackFrame::EXIT || |