Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index d4802b306e8a3eabe3dee186d14baac1629d3195..6aa8bb1886aab13df67d8a263c85b792cac1dbd5 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -1733,6 +1733,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 |
// ----------------------------------- |
@@ -1772,7 +1775,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 |