| Index: src/ppc/builtins-ppc.cc
|
| diff --git a/src/ppc/builtins-ppc.cc b/src/ppc/builtins-ppc.cc
|
| index 6c81f43e17c1678ab201a6275f80a33169b7544c..868020f1f8a066668dd667c4d3cf39c4aaa7016a 100644
|
| --- a/src/ppc/builtins-ppc.cc
|
| +++ b/src/ppc/builtins-ppc.cc
|
| @@ -1218,7 +1218,8 @@ static void Generate_InterpreterPushArgs(MacroAssembler* masm, Register index,
|
|
|
| // static
|
| void Builtins::Generate_InterpreterPushArgsAndCallImpl(
|
| - MacroAssembler* masm, TailCallMode tail_call_mode) {
|
| + MacroAssembler* masm, TailCallMode tail_call_mode,
|
| + CallableType function_type) {
|
| // ----------- S t a t e -------------
|
| // -- r3 : the number of arguments (not including the receiver)
|
| // -- r5 : the address of the first argument to be pushed. Subsequent
|
| @@ -1234,9 +1235,16 @@ void Builtins::Generate_InterpreterPushArgsAndCallImpl(
|
| Generate_InterpreterPushArgs(masm, r5, r6, r7);
|
|
|
| // Call the target.
|
| - __ Jump(masm->isolate()->builtins()->Call(ConvertReceiverMode::kAny,
|
| - tail_call_mode),
|
| - RelocInfo::CODE_TARGET);
|
| + if (function_type == CallableType::kJSFunction) {
|
| + __ Jump(masm->isolate()->builtins()->CallFunction(ConvertReceiverMode::kAny,
|
| + tail_call_mode),
|
| + RelocInfo::CODE_TARGET);
|
| + } else {
|
| + DCHECK_EQ(function_type, CallableType::kAny);
|
| + __ Jump(masm->isolate()->builtins()->Call(ConvertReceiverMode::kAny,
|
| + tail_call_mode),
|
| + RelocInfo::CODE_TARGET);
|
| + }
|
| }
|
|
|
| // static
|
|
|