Index: runtime/vm/intermediate_language.h |
=================================================================== |
--- runtime/vm/intermediate_language.h (revision 14299) |
+++ runtime/vm/intermediate_language.h (working copy) |
@@ -1691,8 +1691,8 @@ |
void PrintTo(BufferFormatter* f) const; |
static const char* ToCString(Range* range); |
- const RangeBoundary& min() { return min_; } |
- const RangeBoundary& max() { return max_; } |
+ const RangeBoundary& min() const { return min_; } |
+ const RangeBoundary& max() const { return max_; } |
bool Equals(Range* other) { |
return min_.Equals(other->min_) && max_.Equals(other->max_); |
@@ -1708,6 +1708,9 @@ |
return range->max().UpperBound(); |
} |
+ // Inclusive. |
+ bool IsWithin(intptr_t min_int, intptr_t max_int) const; |
+ |
private: |
RangeBoundary min_; |
RangeBoundary max_; |