Index: src/compiler/instruction.h |
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h |
index 7da4c5f55e78034fb50a4347f7d6d0025ece13dd..7f64dce978bd6bc9c2f6631c7f569ab37db7fe96 100644 |
--- a/src/compiler/instruction.h |
+++ b/src/compiler/instruction.h |
@@ -812,6 +812,23 @@ 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 IsRet() const { return arch_opcode() == ArchOpcode::kArchRet; } |
+ bool IsTailCall() const { |
+ return arch_opcode() == ArchOpcode::kArchTailCallCodeObject || |
+ arch_opcode() == ArchOpcode::kArchTailCallCodeObjectFromJSFunction || |
+ arch_opcode() == ArchOpcode::kArchTailCallJSFunction || |
+ arch_opcode() == ArchOpcode::kArchTailCallJSFunctionFromJSFunction; |
+ } |
+ bool IsThrow() const { |
+ return arch_opcode() == ArchOpcode::kArchThrowTerminator; |
+ } |
+ |
enum GapPosition { |
START, |
END, |