Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index 50c42241016af182aa34ddc1b88a91c0f1abb604..e598c0964225d05abc070bfa01eefb9b2ff91aba 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -415,6 +415,12 @@ Node* CodeAssembler::CallStub(Callable const& callable, Node* context, |
result_size); |
} |
+Node* CodeAssembler::CallStubN(Callable const& callable, Node** args, |
+ size_t result_size) { |
+ Node* target = HeapConstant(callable.code()); |
+ return CallStubN(callable.descriptor(), target, args, result_size); |
+} |
+ |
Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor, |
Node* target, Node* context, Node* arg1, |
size_t result_size) { |
@@ -502,6 +508,16 @@ Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor, |
return CallN(call_descriptor, target, args); |
} |
+Node* CodeAssembler::CallStubN(const CallInterfaceDescriptor& descriptor, |
+ Node* target, Node** args, size_t result_size) { |
+ CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( |
+ isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), |
+ CallDescriptor::kNoFlags, Operator::kNoProperties, |
+ MachineType::AnyTagged(), result_size); |
+ |
+ return CallN(call_descriptor, target, args); |
+} |
+ |
Node* CodeAssembler::TailCallStub(Callable const& callable, Node* context, |
Node* arg1, Node* arg2, size_t result_size) { |
Node* target = HeapConstant(callable.code()); |