Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: runtime/vm/intermediate_language.h

Issue 11779017: Ensure that LowerBound and UpperBound return overflow marker when overflow occurs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index d743e0f5cb3f88eb7aaf9666aec7bd2f58403535..d9dee189d7e1aba0fc5911c8d7642af4081a19e8 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -1720,12 +1720,12 @@ class Range : public ZoneAllocated {
static RangeBoundary ConstantMin(Range* range) {
if (range == NULL) return RangeBoundary::MinSmi();
- return range->min().LowerBound();
+ return range->min().LowerBound().Clamp();
}
static RangeBoundary ConstantMax(Range* range) {
if (range == NULL) return RangeBoundary::MaxSmi();
- return range->max().UpperBound();
+ return range->max().UpperBound().Clamp();
}
// Inclusive.
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698