Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index bbb4d6353bf701844784e76f4c2eaf95bcf34141..f50fa1a14ba028d63fd90f25ee302bbbe380a8eb 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -1026,6 +1026,21 @@ Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context, |
return CallStub(callable.descriptor(), target, context, arg1, result_size); |
} |
+Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context, |
+ Node* arg1, Node* arg2, size_t result_size) { |
+ Node* target = HeapConstant(callable.code()); |
+ return CallStub(callable.descriptor(), target, context, arg1, arg2, |
+ result_size); |
+} |
+ |
+Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context, |
+ Node* arg1, Node* arg2, Node* arg3, |
+ size_t result_size) { |
+ Node* target = HeapConstant(callable.code()); |
+ return CallStub(callable.descriptor(), target, context, arg1, arg2, arg3, |
+ result_size); |
+} |
+ |
Node* CodeStubAssembler::CallStub(const CallInterfaceDescriptor& descriptor, |
Node* target, Node* context, Node* arg1, |
size_t result_size) { |