| Index: src/interpreter/bytecodes.cc
|
| diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc
|
| index f7b17965580c160371932a5ee6209c8741e1554f..5296cc82b1de4ec7d57468bb639e8020a828a6a6 100644
|
| --- a/src/interpreter/bytecodes.cc
|
| +++ b/src/interpreter/bytecodes.cc
|
| @@ -260,6 +260,12 @@ bool Bytecodes::IsJump(Bytecode bytecode) {
|
|
|
|
|
| // static
|
| +bool Bytecodes::IsCallOrNew(Bytecode bytecode) {
|
| + return bytecode == Bytecode::kCall || bytecode == Bytecode::kNew ||
|
| + bytecode == Bytecode::kCallWide || bytecode == Bytecode::kNewWide;
|
| +}
|
| +
|
| +// static
|
| bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) {
|
| return bytecode == Bytecode::kReturn || IsJump(bytecode);
|
| }
|
|
|