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

Unified Diff: lib/compiler/implementation/constant_system.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
« no previous file with comments | « no previous file | lib/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/constant_system.dart
===================================================================
--- lib/compiler/implementation/constant_system.dart (revision 12944)
+++ lib/compiler/implementation/constant_system.dart (working copy)
@@ -10,11 +10,13 @@
interface UnaryOperation extends Operation {
/** Returns [:null:] if it was unable to fold the operation. */
Constant fold(Constant constant);
+ apply(value);
}
interface BinaryOperation extends Operation {
/** Returns [:null:] if it was unable to fold the operation. */
Constant fold(Constant left, Constant right);
+ apply(left, right);
}
/**
« no previous file with comments | « no previous file | lib/compiler/implementation/constant_system_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698