Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index 4f5159af40213f0a2582dcb91df979a7309ba630..405f134ac833cb3305727122b7dacfb7d8d7660b 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -720,6 +720,14 @@ Node* CodeAssembler::TailCallStub(Callable const& callable, Node* context, |
arg4, result_size); |
} |
+Node* CodeAssembler::TailCallStub(Callable const& callable, Node* context, |
+ Node* arg1, Node* arg2, Node* arg3, |
+ Node* arg4, Node* arg5, size_t result_size) { |
+ Node* target = HeapConstant(callable.code()); |
+ return TailCallStub(callable.descriptor(), target, context, arg1, arg2, arg3, |
+ arg4, arg5, result_size); |
+} |
+ |
Node* CodeAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, |
Node* target, Node* context, Node* arg1, |
size_t result_size) { |
@@ -808,6 +816,27 @@ Node* CodeAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, |
} |
Node* CodeAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, |
+ Node* target, Node* context, Node* arg1, |
+ Node* arg2, Node* arg3, Node* arg4, |
+ Node* arg5, Node* arg6, size_t result_size) { |
+ CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( |
+ isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), |
+ CallDescriptor::kSupportsTailCalls, Operator::kNoProperties, |
+ MachineType::AnyTagged(), result_size); |
+ |
+ Node** args = zone()->NewArray<Node*>(7); |
+ args[0] = arg1; |
+ args[1] = arg2; |
+ args[2] = arg3; |
+ args[3] = arg4; |
+ args[4] = arg5; |
+ args[5] = arg6; |
+ args[6] = context; |
+ |
+ return raw_assembler_->TailCallN(call_descriptor, target, args); |
+} |
+ |
+Node* CodeAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, |
Node* target, Node* context, const Arg& arg1, |
const Arg& arg2, const Arg& arg3, |
const Arg& arg4, size_t result_size) { |