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..9caabec0a10800f1ef9e3d3618872c1c58857604 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,14 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); |
// Preserve the incoming parameters on the stack. |
- __ AssertUndefinedOrAllocationSite(r5, r7); |
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 +710,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
__ blr(); |
} |
+} // namespace |
+ |
void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { |
Generate_JSConstructStubHelper(masm, false, true, false); |
} |