Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 090cb7f7fe24c1fd6a081deac28883ad10eee0ac..7619a127ed43e81e7fbac3c0d3c1b5728b2189c6 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -1140,7 +1140,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 ------------- |
// -- x0 : the number of arguments (not including the receiver) |
// -- x2 : the address of the first argument to be pushed. Subsequent |
@@ -1168,9 +1169,16 @@ void Builtins::Generate_InterpreterPushArgsAndCallImpl( |
__ B(gt, &loop_header); |
// 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 |