Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index f39e8fe6ec7610e0b932cdb85d220c57b89852e0..4ed9ca7d769da3efd5a8bf9ddf1bf6256569bddc 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -583,6 +583,16 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::Call(Register callable, |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::New(Register constructor, |
+ Register first_arg, |
+ size_t arg_count) { |
+ DCHECK(FitsInIdx8Operand(arg_count)); |
+ Output(Bytecode::kNew, constructor.ToOperand(), first_arg.ToOperand(), |
+ static_cast<uint8_t>(arg_count)); |
+ return *this; |
+} |
+ |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime( |
Runtime::FunctionId function_id, Register first_arg, size_t arg_count) { |
DCHECK(FitsInIdx16Operand(function_id)); |