Index: src/interpreter/bytecode-array-builder.h |
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h |
index dbdecc47d8c8a653f6c974dbf0b1c92e76ad5193..6d2605bd5f1c13ea995cbf4bd41483d422da8f95 100644 |
--- a/src/interpreter/bytecode-array-builder.h |
+++ b/src/interpreter/bytecode-array-builder.h |
@@ -213,6 +213,11 @@ class V8_EXPORT_PRIVATE BytecodeArrayBuilder final |
Call::CallType call_type, |
TailCallMode tail_call_mode = TailCallMode::kDisallow); |
+ // Call a JS function. The JSFunction or Callable to be called should be in |
+ // |args[0]|, the receiver in |args[1]| and the arguments in |args[2]| |
+ // onwards. The final argument must be a spread. |
+ BytecodeArrayBuilder& CallWithSpread(RegisterList args); |
+ |
// Call the new operator. The accumulator holds the |new_target|. |
// The |constructor| is in a register and arguments are in |args|. |
BytecodeArrayBuilder& New(Register constructor, RegisterList args, |