| Index: src/builtins/mips/builtins-mips.cc
|
| diff --git a/src/builtins/mips/builtins-mips.cc b/src/builtins/mips/builtins-mips.cc
|
| index 8efc142dd1bb49a5632a76f0a114b3d124746581..92ee99f1612e107206b1ed8054f2dc0899134cfb 100644
|
| --- a/src/builtins/mips/builtins-mips.cc
|
| +++ b/src/builtins/mips/builtins-mips.cc
|
| @@ -548,14 +548,14 @@ void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) {
|
| GenerateTailCallToSharedCode(masm);
|
| }
|
|
|
| -static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| - bool is_api_function,
|
| - bool create_implicit_receiver,
|
| - bool check_derived_construct) {
|
| +namespace {
|
| +
|
| +void Generate_JSConstructStubHelper(MacroAssembler* masm, bool is_api_function,
|
| + bool create_implicit_receiver,
|
| + bool check_derived_construct) {
|
| // ----------- S t a t e -------------
|
| // -- a0 : number of arguments
|
| // -- a1 : constructor function
|
| - // -- a2 : allocation site or undefined
|
| // -- a3 : new target
|
| // -- cp : context
|
| // -- ra : return address
|
| @@ -569,9 +569,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| FrameScope scope(masm, StackFrame::CONSTRUCT);
|
|
|
| // Preserve the incoming parameters on the stack.
|
| - __ AssertUndefinedOrAllocationSite(a2, t0);
|
| __ SmiTag(a0);
|
| - __ Push(cp, a2, a0);
|
| + __ Push(cp, a0);
|
|
|
| if (create_implicit_receiver) {
|
| // Allocate the new receiver object.
|
| @@ -698,6 +697,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| __ Ret();
|
| }
|
|
|
| +} // namespace
|
| +
|
| void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) {
|
| Generate_JSConstructStubHelper(masm, false, true, false);
|
| }
|
|
|