| Index: src/interpreter/bytecode-array-builder.h
|
| diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
|
| index 4b7daec1cfc2ddafc22687ebe7b45a12fbafec87..b6b9068f624f9f2d965266d3af8a8e280f0f1021 100644
|
| --- a/src/interpreter/bytecode-array-builder.h
|
| +++ b/src/interpreter/bytecode-array-builder.h
|
| @@ -100,13 +100,19 @@ class BytecodeArrayBuilder {
|
| BytecodeArrayBuilder& Call(Register callable, Register receiver,
|
| size_t arg_count);
|
|
|
| + // Call the new operator. The |constructor| register is followed by
|
| + // |arg_count| consecutive registers containing arguments to be
|
| + // applied to the constructor.
|
| + BytecodeArrayBuilder& New(Register constructor, Register first_arg,
|
| + size_t arg_count);
|
| +
|
| // Call the runtime function with |function_id|. The first argument should be
|
| // in |first_arg| and all subsequent arguments should be in registers
|
| // <first_arg + 1> to <first_arg + 1 + arg_count>.
|
| BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id,
|
| Register first_arg, size_t arg_count);
|
|
|
| - // Operators (register == lhs, accumulator = rhs).
|
| + // Operators (register holds the lhs value, accumulator holds the rhs value).
|
| BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg,
|
| Strength strength);
|
|
|
|
|