Index: src/interpreter/bytecode-array-builder.h |
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h |
index 9c176d57ac8e124e3b596fb7e02d5f7760e58470..76114cc1d43d0e8ab188843b901c7453cb3f2cf1 100644 |
--- a/src/interpreter/bytecode-array-builder.h |
+++ b/src/interpreter/bytecode-array-builder.h |
@@ -240,6 +240,11 @@ class V8_EXPORT_PRIVATE BytecodeArrayBuilder final |
// Call the JS runtime function with |context_index| and arguments |args|. |
BytecodeArrayBuilder& CallJSRuntime(int context_index, RegisterList args); |
+ // Call the constructor in |args[0]| with new_target in |args[1]| and the |
+ // arguments starting at |args[2]| onwards. The final argument must be a |
+ // spread. |
+ BytecodeArrayBuilder& NewWithSpread(RegisterList args); |
+ |
// Operators (register holds the lhs value, accumulator holds the rhs value). |
// Type feedback will be recorded in the |feedback_slot| |
BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, |