Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index 88ec5e95e9f0bb223586b9139a5ca693a3df5aff..e60e670e36cf6e10c63a0907b3d9d1058e4d22ad 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -1720,6 +1720,9 @@ void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { |
void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
int field_index) { |
// ----------- S t a t e ------------- |
+ // -- a0 : number of arguments |
+ // -- a1 : function |
+ // -- cp : context |
// -- sp[0] : receiver |
// ----------------------------------- |
@@ -1759,7 +1762,14 @@ void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
// 3. Raise a TypeError if the receiver is not a date. |
__ bind(&receiver_not_date); |
- __ TailCallRuntime(Runtime::kThrowNotDateError); |
+ { |
+ FrameScope scope(masm, StackFrame::MANUAL); |
+ __ Push(a0, ra, fp); |
+ __ Move(fp, sp); |
+ __ Push(cp, a1); |
+ __ Push(Smi::FromInt(0)); |
+ __ CallRuntime(Runtime::kThrowNotDateError); |
+ } |
} |
// static |