Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index c92d6b4eef31fa29766a70f15ff93aa53ea5a141..76431d08ca341d3cb4106c2cab6b290065765575 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -1119,7 +1119,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 |
@@ -1144,9 +1145,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 |