Index: src/builtins/ppc/builtins-ppc.cc |
diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc |
index 68786fa3bfcc4a88a7d249f183d3535e9d9e93da..338a12d58012edf2f4e5565ddd39a0f05010243f 100644 |
--- a/src/builtins/ppc/builtins-ppc.cc |
+++ b/src/builtins/ppc/builtins-ppc.cc |
@@ -1201,7 +1201,7 @@ void Builtins::Generate_InterpreterPushArgsAndCallImpl( |
// static |
void Builtins::Generate_InterpreterPushArgsAndConstructImpl( |
- MacroAssembler* masm, CallableType construct_type) { |
+ MacroAssembler* masm, PushArgsConstructMode mode) { |
// ----------- S t a t e ------------- |
// -- r3 : argument count (not including receiver) |
// -- r6 : new target |
@@ -1224,7 +1224,7 @@ void Builtins::Generate_InterpreterPushArgsAndConstructImpl( |
__ bind(&skip); |
__ AssertUndefinedOrAllocationSite(r5, r8); |
- if (construct_type == CallableType::kJSFunction) { |
+ if (mode == PushArgsConstructMode::kJSFunction) { |
__ AssertFunction(r4); |
// Tail call to the function-specific construct stub (still in the caller |
@@ -1234,9 +1234,12 @@ void Builtins::Generate_InterpreterPushArgsAndConstructImpl( |
// Jump to the construct function. |
__ addi(ip, r7, Operand(Code::kHeaderSize - kHeapObjectTag)); |
__ Jump(ip); |
- |
+ } else if (mode == PushArgsConstructMode::kWithFinalSpread) { |
+ // Call the constructor with r3, r4, and r6 unmodified. |
+ __ Jump(masm->isolate()->builtins()->ConstructWithSpread(), |
+ RelocInfo::CODE_TARGET); |
} else { |
- DCHECK_EQ(construct_type, CallableType::kAny); |
+ DCHECK_EQ(PushArgsConstructMode::kOther, mode); |
// Call the constructor with r3, r4, and r6 unmodified. |
__ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
} |