| Index: src/compiler/opcodes.h
|
| diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h
|
| index 99ea8e48ec832b88cd35303d1e11c9fb48ad3fd0..1324c930db255c734e4c30d247061b0accdd6ae1 100644
|
| --- a/src/compiler/opcodes.h
|
| +++ b/src/compiler/opcodes.h
|
| @@ -10,11 +10,11 @@
|
| V(Dead) \
|
| V(Loop) \
|
| V(Branch) \
|
| + V(Switch) \
|
| V(IfTrue) \
|
| V(IfFalse) \
|
| V(IfSuccess) \
|
| V(IfException) \
|
| - V(Switch) \
|
| V(IfValue) \
|
| V(IfDefault) \
|
| V(Merge) \
|
| @@ -322,6 +322,10 @@ class IrOpcode {
|
| return value == kMerge || value == kLoop;
|
| }
|
|
|
| + static bool IsIfProjectionOpcode(Value value) {
|
| + return kIfTrue <= value && value <= kIfDefault;
|
| + }
|
| +
|
| // Returns true if opcode for comparison operator.
|
| static bool IsComparisonOpcode(Value value) {
|
| return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
|
|
|