Chromium Code Reviews| Index: src/compiler/opcodes.h |
| diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h |
| index fa85974c0136e2ff46b8dcb2007efc75bfed89b3..a24a3accd95a2ed2425a825197e04d3a34365098 100644 |
| --- a/src/compiler/opcodes.h |
| +++ b/src/compiler/opcodes.h |
| @@ -294,6 +294,10 @@ class IrOpcode { |
| static bool IsLeafOpcode(Value value) { |
| return kInt32Constant <= value && value <= kHeapConstant; |
| } |
| + |
| + static bool IsPhiOpcode(Value val) { |
| + return val == kPhi || val == kEffectPhi; |
| + } |
| }; |
| } // namespace compiler |