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

Unified Diff: tests/language/optimization_test.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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/language/many_calls_test.dart ('k') | tests/language/optimized_lists_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/optimization_test.dart
diff --git a/tests/language/optimization_test.dart b/tests/language/optimization_test.dart
index 3d1eb49b8345f3e03c573bdccbe5613be680f71c..be41f4f7bb63d7096821385e3d90b93310e5a49d 100644
--- a/tests/language/optimization_test.dart
+++ b/tests/language/optimization_test.dart
@@ -79,7 +79,7 @@ main() {
// Deoptimize.
Expect.equals(-5, doNeg2(5));
- var fixed = new List(10);
+ var fixed = new List.fixedLength(10);
var growable = [1, 2, 3, 4, 5];
for (int i = 0; i < 2000; i++) {
« no previous file with comments | « tests/language/many_calls_test.dart ('k') | tests/language/optimized_lists_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698