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

Unified Diff: tests/language/optimization_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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/language/optimization_test.dart
diff --git a/tests/language/optimization_test.dart b/tests/language/optimization_test.dart
index be41f4f7bb63d7096821385e3d90b93310e5a49d..c399754a107d9b32e12dd9d2e5f34cfb3c2e4d25 100644
--- a/tests/language/optimization_test.dart
+++ b/tests/language/optimization_test.dart
@@ -63,7 +63,7 @@ main() {
// Deoptimize because of overflow.
var minInt = -(1 << 30);
Expect.equals(minInt, doNeg(doNeg(minInt)));
-
+
for (int i = 0; i < 1000; i++) {
Expect.equals(false, doNot(true));
Expect.equals(true, doNot(doNot(true)));
@@ -79,7 +79,7 @@ main() {
// Deoptimize.
Expect.equals(-5, doNeg2(5));
- var fixed = new List.fixedLength(10);
+ var fixed = new List(10);
var growable = [1, 2, 3, 4, 5];
for (int i = 0; i < 2000; i++) {

Powered by Google App Engine
This is Rietveld 408576698