Index: src/interpreter/bytecode-array-builder.h |
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h |
index ebcb18017e8bf4d1f6da09498ed584a94a48b37f..f7a8dddebd3f77d78cc90ce58264ad3736b3be4e 100644 |
--- a/src/interpreter/bytecode-array-builder.h |
+++ b/src/interpreter/bytecode-array-builder.h |
@@ -67,6 +67,13 @@ class BytecodeArrayBuilder { |
int feedback_slot, |
LanguageMode language_mode); |
+ // Call a JS function. The JSFunction or Callable to be called should be in |
+ // |callable|, the receiver should be in |receiver| and all subsequent |
+ // arguments should be in registers <receiver + 1> to |
+ // <receiver + 1 + arg_count>. |
+ BytecodeArrayBuilder& Call(Register callable, Register receiver, |
+ size_t arg_count); |
+ |
// Operators. |
BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg); |