Chromium Code Reviews| Index: src/builtins/ppc/builtins-ppc.cc |
| diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc |
| index 019b443a35791025d53a50514530d90dfc0bc3a9..b05a4c39e53a3c3b971970300f08581d9281528a 100644 |
| --- a/src/builtins/ppc/builtins-ppc.cc |
| +++ b/src/builtins/ppc/builtins-ppc.cc |
| @@ -555,14 +555,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 ------------- |
| // -- r3 : number of arguments |
| // -- r4 : constructor function |
| - // -- r5 : allocation site or undefined |
| // -- r6 : new target |
| // -- cp : context |
| // -- lr : return address |
| @@ -576,15 +576,15 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
| FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); |
| // Preserve the incoming parameters on the stack. |
| - __ AssertUndefinedOrAllocationSite(r5, r7); |
| + __ Push(cp); |
|
JaideepBajwa
2016/10/18 22:26:59
as discussed, this Push can be removed. Otherwise
|
| if (!create_implicit_receiver) { |
| __ SmiTag(r7, r3, SetRC); |
| - __ Push(cp, r5, r7); |
| + __ Push(cp, r7); |
| __ PushRoot(Heap::kTheHoleValueRootIndex); |
| } else { |
| __ SmiTag(r3); |
| - __ Push(cp, r5, r3); |
| + __ Push(cp, r3); |
| // Allocate the new receiver object. |
| __ Push(r4, r6); |
| @@ -711,6 +711,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
| __ blr(); |
| } |
| +} // namespace |
| + |
| void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { |
| Generate_JSConstructStubHelper(masm, false, true, false); |
| } |