Index: src/compiler/instruction.h |
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h |
index 7da4c5f55e78034fb50a4347f7d6d0025ece13dd..4f47c90affa8d7485b253545f05958b8445e3c29 100644 |
--- a/src/compiler/instruction.h |
+++ b/src/compiler/instruction.h |
@@ -812,6 +812,19 @@ class Instruction final { |
OutputCount() == 0 && TempCount() == 0; |
} |
+ bool IsDeoptimizeCall() const { |
+ return arch_opcode() == ArchOpcode::kArchDeoptimize || |
+ FlagsModeField::decode(opcode()) == kFlags_deoptimize; |
+ } |
+ |
+ bool IsJump() const { return arch_opcode() == ArchOpcode::kArchJmp; } |
+ |
+ bool IsBranch() const { |
+ return FlagsModeField::decode(opcode()) == kFlags_branch; |
+ } |
+ |
+ bool IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; } |
+ |
enum GapPosition { |
START, |
END, |