Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 5a3e46805f3b0df4ebbbbdcabd6548ca6a720341..11156dd48e0faa8ffad78302014e4c4475f05d83 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -189,18 +189,25 @@ namespace interpreter { |
/* Control Flow */ \ |
V(Jump, OperandType::kImm8) \ |
V(JumpConstant, OperandType::kIdx8) \ |
+ V(JumpConstantWide, OperandType::kIdx16) \ |
V(JumpIfTrue, OperandType::kImm8) \ |
V(JumpIfTrueConstant, OperandType::kIdx8) \ |
+ V(JumpIfTrueConstantWide, OperandType::kIdx16) \ |
V(JumpIfFalse, OperandType::kImm8) \ |
V(JumpIfFalseConstant, OperandType::kIdx8) \ |
+ V(JumpIfFalseConstantWide, OperandType::kIdx16) \ |
V(JumpIfToBooleanTrue, OperandType::kImm8) \ |
V(JumpIfToBooleanTrueConstant, OperandType::kIdx8) \ |
+ V(JumpIfToBooleanTrueConstantWide, OperandType::kIdx16) \ |
V(JumpIfToBooleanFalse, OperandType::kImm8) \ |
V(JumpIfToBooleanFalseConstant, OperandType::kIdx8) \ |
+ V(JumpIfToBooleanFalseConstantWide, OperandType::kIdx16) \ |
V(JumpIfNull, OperandType::kImm8) \ |
V(JumpIfNullConstant, OperandType::kIdx8) \ |
+ V(JumpIfNullConstantWide, OperandType::kIdx16) \ |
V(JumpIfUndefined, OperandType::kImm8) \ |
V(JumpIfUndefinedConstant, OperandType::kIdx8) \ |
+ V(JumpIfUndefinedConstantWide, OperandType::kIdx16) \ |
\ |
/* Complex flow control For..in */ \ |
V(ForInPrepare, OperandType::kReg8, OperandType::kReg8, OperandType::kReg8) \ |
@@ -354,10 +361,14 @@ class Bytecodes { |
static bool IsConditionalJumpImmediate(Bytecode bytecode); |
// Return true if the bytecode is a conditional jump taking |
- // a constant pool entry (OperandType::kIdx). |
+ // a constant pool entry (OperandType::kIdx8). |
static bool IsConditionalJumpConstant(Bytecode bytecode); |
// Return true if the bytecode is a conditional jump taking |
+ // a constant pool entry (OperandType::kIdx16). |
+ static bool IsConditionalJumpConstantWide(Bytecode bytecode); |
+ |
+ // Return true if the bytecode is a conditional jump taking |
// any kind of operand. |
static bool IsConditionalJump(Bytecode bytecode); |
@@ -366,9 +377,13 @@ class Bytecodes { |
static bool IsJumpImmediate(Bytecode bytecode); |
// Return true if the bytecode is a jump or conditional jump taking a |
- // constant pool entry (OperandType::kIdx). |
+ // constant pool entry (OperandType::kIdx8). |
static bool IsJumpConstant(Bytecode bytecode); |
+ // Return true if the bytecode is a jump or conditional jump taking a |
+ // constant pool entry (OperandType::kIdx16). |
+ static bool IsJumpConstantWide(Bytecode bytecode); |
+ |
// Return true if the bytecode is a jump or conditional jump taking |
// any kind of operand. |
static bool IsJump(Bytecode bytecode); |