Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index 839912795f445bd5b8ce21d55984036a5aa7d289..206a0868a4ece1fb4db5b1b29b6e61bed9b9d0d6 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -437,6 +437,19 @@ Node* CodeAssembler::CallStubN(Callable const& callable, Node** args, |
} |
Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor, |
+ Node* target, Node* context, size_t result_size) { |
+ CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( |
+ isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), |
+ CallDescriptor::kNoFlags, Operator::kNoProperties, |
+ MachineType::AnyTagged(), result_size); |
+ |
+ Node** args = zone()->NewArray<Node*>(1); |
+ args[0] = context; |
+ |
+ return CallN(call_descriptor, target, args); |
+} |
+ |
+Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor, |
Node* target, Node* context, Node* arg1, |
size_t result_size) { |
CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( |