| Index: src/interpreter/bytecodes.h
|
| diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
|
| index bc54145950043cd6398505ea53a069db5419b8d3..c73fdad192ef70817af32099babcd5f2681b7f44 100644
|
| --- a/src/interpreter/bytecodes.h
|
| +++ b/src/interpreter/bytecodes.h
|
| @@ -500,6 +500,12 @@ class V8_EXPORT_PRIVATE Bytecodes final {
|
| return IsJumpImmediate(bytecode) || IsJumpConstant(bytecode);
|
| }
|
|
|
| + // Returns true if the bytecode is a forward jump or conditional jump taking
|
| + // any kind of operand.
|
| + static CONSTEXPR bool IsForwardJump(Bytecode bytecode) {
|
| + return bytecode != Bytecode::kJumpLoop && IsJump(bytecode);
|
| + }
|
| +
|
| // Returns true if the bytecode is a conditional jump, a jump, or a return.
|
| static CONSTEXPR bool IsJumpOrReturn(Bytecode bytecode) {
|
| return bytecode == Bytecode::kReturn || IsJump(bytecode);
|
|
|