| Index: src/interpreter/interpreter.cc
|
| diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
|
| index 38f02bc95c4dc7dc8cf976a65a0f767e2ea5a5f8..83b6cd748a60fc973618a711fdedeed16068e97b 100644
|
| --- a/src/interpreter/interpreter.cc
|
| +++ b/src/interpreter/interpreter.cc
|
| @@ -1182,9 +1182,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);
|
| @@ -1193,6 +1193,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
|
| @@ -1205,9 +1215,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) {
|
| @@ -1220,6 +1230,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
|
| @@ -1232,9 +1252,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) {
|
| @@ -1247,6 +1267,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
|
| @@ -1262,9 +1292,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(
|
| @@ -1280,6 +1310,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
|
| @@ -1295,9 +1336,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(
|
| @@ -1313,6 +1354,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
|
| @@ -1325,9 +1377,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) {
|
| @@ -1340,7 +1392,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.
|
| @@ -1353,9 +1415,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) {
|
| @@ -1369,6 +1431,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);
|
|
|