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

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

Issue 16944004: Change how we deal with manual inlining of argument error and NSM when propagating types. This chan… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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: tests/compiler/dart2js/value_range_test.dart
===================================================================
--- tests/compiler/dart2js/value_range_test.dart (revision 23949)
+++ tests/compiler/dart2js/value_range_test.dart (working copy)
@@ -159,7 +159,7 @@
main(value) {
// Force [value] to be an int by having the speculative optimizer
// want an int.
- int sum = 0;
+ int sum = ~value;
for (int i = 0; i < 42; i++) sum += (value & 4);
var a = new List();
if (value > a.length - 1) return;
@@ -173,7 +173,7 @@
main(value) {
// Force [value] to be an int by having the speculative optimizer
// want an int.
- int sum = 0;
+ int sum = ~value;
for (int i = 0; i < 42; i++) sum += (value & 4);
var a = new List();
if (value <= a.length - 1) {
@@ -188,7 +188,7 @@
main(value) {
// Force [value] to be an int by having the speculative optimizer
// want an int.
- int sum = 0;
+ int sum = ~value;
for (int i = 0; i < 42; i++) sum += (value & 4);
var a = new List();
if (value >= a.length) return;
@@ -261,6 +261,7 @@
operator ==(other) {}
}
class JSInt extends JSNumber {
+ operator~() => this;
}
class JSDouble extends JSNumber {
}

Powered by Google App Engine
This is Rietveld 408576698