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

Unified Diff: tests/compiler/dart2js/value_range_test.dart

Issue 14416014: After a dynamic call, refine the receiver type by looking at the potential targets of that call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « tests/compiler/dart2js/dead_bailout_target_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/value_range_test.dart
===================================================================
--- tests/compiler/dart2js/value_range_test.dart (revision 22031)
+++ tests/compiler/dart2js/value_range_test.dart (working copy)
@@ -160,7 +160,7 @@
// Force [value] to be an int by having the speculative optimizer
// want an int.
int sum = 0;
- for (int i = 0; i < 42; i++) sum += (value & 4);
+ for (int i = 0; i < 42; i++) sum += ~value;
var a = new List();
if (value > a.length - 1) return;
if (value < 0) return;
@@ -174,7 +174,7 @@
// Force [value] to be an int by having the speculative optimizer
// want an int.
int sum = 0;
- for (int i = 0; i < 42; i++) sum += (value & 4);
+ for (int i = 0; i < 42; i++) sum += ~value;
var a = new List();
if (value <= a.length - 1) {
if (value >= 0) {
@@ -189,7 +189,7 @@
// Force [value] to be an int by having the speculative optimizer
// want an int.
int sum = 0;
- for (int i = 0; i < 42; i++) sum += (value & 4);
+ for (int i = 0; i < 42; i++) sum += ~value;
var a = new List();
if (value >= a.length) return;
if (value <= -1) return;
@@ -253,6 +253,7 @@
operator <=(other) {}
operator >=(other) {}
operator ==(other) {}
+ operator~() {}
}
class JSInt extends JSNumber {
}
« no previous file with comments | « tests/compiler/dart2js/dead_bailout_target_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698