Index: src/compiler/operator.h |
diff --git a/src/compiler/operator.h b/src/compiler/operator.h |
index 114cf6aff577d02a8cea2740c4ef13ca70468fac..ec365fab6f963bcce60a023f4674d3fefbd2efbb 100644 |
--- a/src/compiler/operator.h |
+++ b/src/compiler/operator.h |
@@ -97,6 +97,10 @@ class Operator : public ZoneObject { |
int EffectOutputCount() const { return effect_out_; } |
int ControlOutputCount() const { return control_out_; } |
+ static size_t ZeroIfEliminatable(Properties properties) { |
+ return (properties & kEliminatable) == kEliminatable ? 0 : 1; |
+ } |
+ |
static size_t ZeroIfNoThrow(Properties properties) { |
return (properties & kNoThrow) == kNoThrow ? 0 : 2; |
} |