| Index: src/interpreter/interpreter.cc
|
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
|
| index fce2a3a2a460fdb47cedbbfd3649664984abbe43..a10ab136cf7069285cf9fe2ea689813b2af0676d 100644
|
| --- a/src/interpreter/interpreter.cc
|
| +++ b/src/interpreter/interpreter.cc
|
| @@ -1218,9 +1218,9 @@ void Interpreter::DoJump(compiler::InterpreterAssembler* assembler) {
|
| }
|
|
|
|
|
| -// JumpConstant <idx>
|
| +// JumpConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool.
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool.
|
| void Interpreter::DoJumpConstant(compiler::InterpreterAssembler* assembler) {
|
| Node* index = __ BytecodeOperandIdx(0);
|
| Node* constant = __ LoadConstantPoolEntry(index);
|
| @@ -1229,6 +1229,16 @@ void Interpreter::DoJumpConstant(compiler::InterpreterAssembler* assembler) {
|
| }
|
|
|
|
|
| +// JumpConstantWide <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the
|
| +// constant pool.
|
| +void Interpreter::DoJumpConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpConstant(assembler);
|
| +}
|
| +
|
| +
|
| // JumpIfTrue <imm8>
|
| //
|
| // Jump by number of bytes represented by an immediate operand if the
|
| @@ -1241,9 +1251,9 @@ void Interpreter::DoJumpIfTrue(compiler::InterpreterAssembler* assembler) {
|
| }
|
|
|
|
|
| -// JumpIfTrueConstant <idx>
|
| +// JumpIfTrueConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool
|
| // if the accumulator contains true.
|
| void Interpreter::DoJumpIfTrueConstant(
|
| compiler::InterpreterAssembler* assembler) {
|
| @@ -1256,6 +1266,16 @@ void Interpreter::DoJumpIfTrueConstant(
|
| }
|
|
|
|
|
| +// JumpIfTrueConstantWide <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the constant pool
|
| +// if the accumulator contains true.
|
| +void Interpreter::DoJumpIfTrueConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpIfTrueConstant(assembler);
|
| +}
|
| +
|
| +
|
| // JumpIfFalse <imm8>
|
| //
|
| // Jump by number of bytes represented by an immediate operand if the
|
| @@ -1268,9 +1288,9 @@ void Interpreter::DoJumpIfFalse(compiler::InterpreterAssembler* assembler) {
|
| }
|
|
|
|
|
| -// JumpIfFalseConstant <idx>
|
| +// JumpIfFalseConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool
|
| // if the accumulator contains false.
|
| void Interpreter::DoJumpIfFalseConstant(
|
| compiler::InterpreterAssembler* assembler) {
|
| @@ -1283,6 +1303,16 @@ void Interpreter::DoJumpIfFalseConstant(
|
| }
|
|
|
|
|
| +// JumpIfFalseConstant <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the constant pool
|
| +// if the accumulator contains false.
|
| +void Interpreter::DoJumpIfFalseConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpIfFalseConstant(assembler);
|
| +}
|
| +
|
| +
|
| // JumpIfToBooleanTrue <imm8>
|
| //
|
| // Jump by number of bytes represented by an immediate operand if the object
|
| @@ -1298,9 +1328,9 @@ void Interpreter::DoJumpIfToBooleanTrue(
|
| }
|
|
|
|
|
| -// JumpIfToBooleanTrueConstant <idx>
|
| +// JumpIfToBooleanTrueConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool
|
| // if the object referenced by the accumulator is true when the object is cast
|
| // to boolean.
|
| void Interpreter::DoJumpIfToBooleanTrueConstant(
|
| @@ -1316,6 +1346,17 @@ void Interpreter::DoJumpIfToBooleanTrueConstant(
|
| }
|
|
|
|
|
| +// JumpIfToBooleanTrueConstantWide <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the constant pool
|
| +// if the object referenced by the accumulator is true when the object is cast
|
| +// to boolean.
|
| +void Interpreter::DoJumpIfToBooleanTrueConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpIfToBooleanTrueConstant(assembler);
|
| +}
|
| +
|
| +
|
| // JumpIfToBooleanFalse <imm8>
|
| //
|
| // Jump by number of bytes represented by an immediate operand if the object
|
| @@ -1331,9 +1372,9 @@ void Interpreter::DoJumpIfToBooleanFalse(
|
| }
|
|
|
|
|
| -// JumpIfToBooleanFalseConstant <idx>
|
| +// JumpIfToBooleanFalseConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool
|
| // if the object referenced by the accumulator is false when the object is cast
|
| // to boolean.
|
| void Interpreter::DoJumpIfToBooleanFalseConstant(
|
| @@ -1349,6 +1390,17 @@ void Interpreter::DoJumpIfToBooleanFalseConstant(
|
| }
|
|
|
|
|
| +// JumpIfToBooleanFalseConstantWide <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the constant pool
|
| +// if the object referenced by the accumulator is false when the object is cast
|
| +// to boolean.
|
| +void Interpreter::DoJumpIfToBooleanFalseConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpIfToBooleanFalseConstant(assembler);
|
| +}
|
| +
|
| +
|
| // JumpIfNull <imm8>
|
| //
|
| // Jump by number of bytes represented by an immediate operand if the object
|
| @@ -1361,9 +1413,9 @@ void Interpreter::DoJumpIfNull(compiler::InterpreterAssembler* assembler) {
|
| }
|
|
|
|
|
| -// JumpIfNullConstant <idx>
|
| +// JumpIfNullConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool
|
| // if the object referenced by the accumulator is the null constant.
|
| void Interpreter::DoJumpIfNullConstant(
|
| compiler::InterpreterAssembler* assembler) {
|
| @@ -1376,7 +1428,17 @@ void Interpreter::DoJumpIfNullConstant(
|
| }
|
|
|
|
|
| -// JumpIfUndefined <imm8>
|
| +// JumpIfNullConstantWide <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the constant pool
|
| +// if the object referenced by the accumulator is the null constant.
|
| +void Interpreter::DoJumpIfNullConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpIfNullConstant(assembler);
|
| +}
|
| +
|
| +
|
| +// jumpifundefined <imm8>
|
| //
|
| // Jump by number of bytes represented by an immediate operand if the object
|
| // referenced by the accumulator is the undefined constant.
|
| @@ -1389,9 +1451,9 @@ void Interpreter::DoJumpIfUndefined(compiler::InterpreterAssembler* assembler) {
|
| }
|
|
|
|
|
| -// JumpIfUndefinedConstant <idx>
|
| +// JumpIfUndefinedConstant <idx8>
|
| //
|
| -// Jump by number of bytes in the Smi in the |idx| entry in the constant pool
|
| +// Jump by number of bytes in the Smi in the |idx8| entry in the constant pool
|
| // if the object referenced by the accumulator is the undefined constant.
|
| void Interpreter::DoJumpIfUndefinedConstant(
|
| compiler::InterpreterAssembler* assembler) {
|
| @@ -1405,6 +1467,16 @@ void Interpreter::DoJumpIfUndefinedConstant(
|
| }
|
|
|
|
|
| +// JumpIfUndefinedConstantWide <idx16>
|
| +//
|
| +// Jump by number of bytes in the Smi in the |idx16| entry in the constant pool
|
| +// if the object referenced by the accumulator is the undefined constant.
|
| +void Interpreter::DoJumpIfUndefinedConstantWide(
|
| + compiler::InterpreterAssembler* assembler) {
|
| + DoJumpIfUndefinedConstant(assembler);
|
| +}
|
| +
|
| +
|
| void Interpreter::DoCreateLiteral(Runtime::FunctionId function_id,
|
| compiler::InterpreterAssembler* assembler) {
|
| Node* index = __ BytecodeOperandIdx(0);
|
|
|