Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index e3cb9fdbc5b4f3d23cc205f8d72d99bb52547259..4018bcb7a6aedf2feb649ff2cc47943715f53ef2 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -263,6 +263,7 @@ class Range: public ZoneObject { |
bool CanBeMinusZero() const { return CanBeZero() && can_be_minus_zero_; } |
bool CanBeZero() const { return upper_ >= 0 && lower_ <= 0; } |
bool CanBeNegative() const { return lower_ < 0; } |
+ bool CanBePositive() const { return upper_ > 0; } |
bool Includes(int value) const { return lower_ <= value && upper_ >= value; } |
bool IsMostGeneric() const { |
return lower_ == kMinInt && upper_ == kMaxInt && CanBeMinusZero(); |