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

Unified Diff: lib/compiler/implementation/ssa/types.dart

Issue 10968060: Add a value range analysis phase to remove bounds checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: lib/compiler/implementation/ssa/types.dart
===================================================================
--- lib/compiler/implementation/ssa/types.dart (revision 12781)
+++ lib/compiler/implementation/ssa/types.dart (working copy)
@@ -142,8 +142,8 @@
class HConflictingType extends HAnalysisType {
const HConflictingType() : super("conflicting");
- bool canBePrimitive() => false;
- bool canBeNull() => false;
+ bool canBePrimitive() => true;
+ bool canBeNull() => true;
HType union(HType other) => other;
HType intersection(HType other) => this;

Powered by Google App Engine
This is Rietveld 408576698