Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index efd6b37ff3514d615d38a865c691eaf561d3260f..7626cde78b7915347b80115151588f29c0ec4ab8 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -1133,7 +1133,8 @@ void Builtins::Generate_InterpreterMarkBaselineOnReturn(MacroAssembler* masm) { |
// 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 ------------- |
// -- a0 : the number of arguments (not including the receiver) |
// -- a2 : the address of the first argument to be pushed. Subsequent |
@@ -1158,9 +1159,16 @@ void Builtins::Generate_InterpreterPushArgsAndCallImpl( |
__ Branch(&loop_header, gt, a2, Operand(a3)); |
// 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 |