| Index: src/interpreter/bytecode-array-builder.cc
|
| diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
|
| index 5476a475f214c51d72dd88875a4badc0a632a2ac..004a05a938daff0e5a64bfe91f30ebda78d12ade 100644
|
| --- a/src/interpreter/bytecode-array-builder.cc
|
| +++ b/src/interpreter/bytecode-array-builder.cc
|
| @@ -518,6 +518,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));
|
|
|