Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index 746265235a768603442a61eb80921edc86896402..55057e05a673c9461372af164019cdf4c60d1f99 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -1000,6 +1000,20 @@ int MacroAssembler::LeaveFrame(StackFrame::Type type, int stack_adjustment) { |
return frame_ends; |
} |
+void MacroAssembler::EnterBuiltinFrame(Register context, Register target, |
+ Register argc) { |
+ CleanseP(r14); |
+ Push(r14, fp, context, target); |
+ la(fp, MemOperand(sp, 2 * kPointerSize)); |
+ Push(argc); |
+} |
+ |
+void MacroAssembler::LeaveBuiltinFrame(Register context, Register target, |
+ Register argc) { |
+ Pop(argc); |
+ Pop(r14, fp, context, target); |
+} |
+ |
// ExitFrame layout (probably wrongish.. needs updating) |
// |
// SP -> previousSP |