Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index a9b12eaed01a19b5c8423ece72f1516205429f95..e00187cf75bcc9edbdc3710171711968ac4b0447 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -1196,9 +1196,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); |
@@ -1207,6 +1207,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 |
@@ -1219,9 +1229,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) { |
@@ -1234,6 +1244,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 |
@@ -1246,9 +1266,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) { |
@@ -1261,6 +1281,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 |
@@ -1276,9 +1306,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( |
@@ -1294,6 +1324,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 |
@@ -1309,9 +1350,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( |
@@ -1327,6 +1368,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 |
@@ -1339,9 +1391,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) { |
@@ -1354,7 +1406,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. |
@@ -1367,9 +1429,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) { |
@@ -1383,6 +1445,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); |