Chromium Code Reviews| Index: src/interpreter/bytecodes.h |
| diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
| index 64bf660746d484b1d85889d62bfa608e65c8f43c..6fa073909273afd59742444a5599308fe6ca46f7 100644 |
| --- a/src/interpreter/bytecodes.h |
| +++ b/src/interpreter/bytecodes.h |
| @@ -332,14 +332,33 @@ class Bytecodes { |
| // Returns the size of |operand|. |
| static OperandSize SizeOfOperand(OperandType operand); |
| + // Return true if the bytecode is a conditional jump taking |
| + // an immediate byte operand (OperandType::kImm8). |
| + static bool IsConditionalJumpImmediate(Bytecode bytecode); |
| + |
| + // Return true if the bytecode is a conditional jump taking |
| + // an immediate byte operand (OperandType::kImm8). |
|
rmcilroy
2015/12/08 13:25:08
fix comment
oth
2015/12/09 11:26:45
Done.
|
| + static bool IsConditionalJumpConstant(Bytecode bytecode); |
| + |
| + // Return true if the bytecode is a conditional jump taking |
| + // any kind of operand. |
| + static bool IsConditionalJump(Bytecode bytecode); |
| + |
| // Return true if the bytecode is a jump or a conditional jump taking |
| // an immediate byte operand (OperandType::kImm8). |
| - static bool IsJump(Bytecode bytecode); |
| + static bool IsJumpImmediate(Bytecode bytecode); |
| // Return true if the bytecode is a jump or conditional jump taking a |
| // constant pool entry (OperandType::kIdx). |
| static bool IsJumpConstant(Bytecode bytecode); |
| + // Return true if the bytecode is a jump or conditional jump taking |
| + // any kind of operand. |
| + static bool IsJump(Bytecode bytecode); |
| + |
| + // Return true if the bytecode is a conditional jump, a jump, or a return. |
| + static bool IsLocalControlFlow(Bytecode bytecode); |
| + |
| // Decode a single bytecode and operands to |os|. |
| static std::ostream& Decode(std::ostream& os, const uint8_t* bytecode_start, |
| int number_of_parameters); |