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

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

Issue 11783009: Big merge from experimental to bleeding edge. (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 | « tests/compiler/dart2js/type_guard_unuser_test.dart ('k') | tests/compiler/dart2js_extra/for_in_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/value_range_test.dart
diff --git a/tests/compiler/dart2js/value_range_test.dart b/tests/compiler/dart2js/value_range_test.dart
index 45b6328504e672d2b3ef4cdac45deba3e61f05f7..5b2103ad353ee19eb4c99033f300df0ef9644719 100644
--- a/tests/compiler/dart2js/value_range_test.dart
+++ b/tests/compiler/dart2js/value_range_test.dart
@@ -40,7 +40,7 @@ ABOVE_ZERO,
main(check) {
// Make sure value is an int.
var value = check ? 42 : 54;
- var a = new List(value);
+ var a = new List.fixedLength(value);
var sum = 0;
for (int i = 0; i < value; i++) {
sum += a[i];
@@ -68,7 +68,7 @@ KEPT,
"""
main() {
- var a = new List(4);
+ var a = new List.fixedLength(4);
return a[0];
}
""",
@@ -76,7 +76,7 @@ REMOVED,
"""
main() {
- var a = new List(4);
+ var a = new List.fixedLength(4);
return a.removeLast();
}
""",
@@ -84,7 +84,7 @@ REMOVED,
"""
main(value) {
- var a = new List(value);
+ var a = new List.fixedLength(value);
return a[value];
}
""",
@@ -92,7 +92,7 @@ KEPT,
"""
main(value) {
- var a = new List(1024);
+ var a = new List.fixedLength(1024);
return a[1023 & value];
}
""",
@@ -100,7 +100,7 @@ REMOVED,
"""
main(value) {
- var a = new List(1024);
+ var a = new List.fixedLength(1024);
return a[1024 & value];
}
""",
@@ -243,13 +243,13 @@ expect(String code, int kind) {
case ONE_CHECK:
RegExp regexp = new RegExp('ioore');
- Iterator matches = regexp.allMatches(generated).iterator();
+ Iterator matches = regexp.allMatches(generated).iterator;
checkNumberOfMatches(matches, 1);
break;
case ONE_ZERO_CHECK:
RegExp regexp = new RegExp('< 0');
- Iterator matches = regexp.allMatches(generated).iterator();
+ Iterator matches = regexp.allMatches(generated).iterator;
checkNumberOfMatches(matches, 1);
break;
}
« no previous file with comments | « tests/compiler/dart2js/type_guard_unuser_test.dart ('k') | tests/compiler/dart2js_extra/for_in_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698