| Index: src/mips/builtins-mips.cc
|
| diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc
|
| index 22f2b6f3ba80741902d8281923179ab01c5355be..73b3a4e00daaabdcebba05f990f224a586652b4d 100644
|
| --- a/src/mips/builtins-mips.cc
|
| +++ b/src/mips/builtins-mips.cc
|
| @@ -1733,12 +1733,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);
|
| @@ -1772,7 +1776,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
|
|
|