| Index: src/mips64/builtins-mips64.cc
|
| diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc
|
| index 88ec5e95e9f0bb223586b9139a5ca693a3df5aff..bc222305c47ba0c1e9381ce31fe590fe43732e51 100644
|
| --- a/src/mips64/builtins-mips64.cc
|
| +++ b/src/mips64/builtins-mips64.cc
|
| @@ -1720,12 +1720,16 @@ 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
|
| // -----------------------------------
|
|
|
| // 1. Pop receiver into a0 and check that it's actually a JSDate object.
|
| Label receiver_not_date;
|
| {
|
| + __ Move(a2, a0); // Store argc for builtin frame construction.
|
| __ Pop(a0);
|
| __ JumpIfSmi(a0, &receiver_not_date);
|
| __ GetObjectType(a0, t0, t0);
|
| @@ -1759,7 +1763,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);
|
| + __ SmiTag(a2);
|
| + __ Push(cp, a1, a2);
|
| + __ CallRuntime(Runtime::kThrowNotDateError);
|
| + }
|
| }
|
|
|
| // static
|
|
|