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

Unified Diff: tests/language/deopt_no_feedback_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/deopt_no_feedback_test.dart
diff --git a/tests/language/deopt_no_feedback_test.dart b/tests/language/deopt_no_feedback_test.dart
index 9cb79c108a5d1087d5dc94e82ff72a89acf76137..f307e774ba1d617c69c8714f24db56e2efb0eac8 100644
--- a/tests/language/deopt_no_feedback_test.dart
+++ b/tests/language/deopt_no_feedback_test.dart
@@ -8,13 +8,13 @@ testStoreIndexed() {
test(a, i, v, flag) {
if (flag) {
// No type feedback in first pass
- return a[i] = v;
+ return a[i] = v;
} else {
return a[i] = i;
}
}
- var a = new List.fixedLength(10);
+ var a = new List(10);
for (var i = 0; i < 2000; i++) {
var r = test(a, 3, 888, false);
Expect.equals(3, r);

Powered by Google App Engine
This is Rietveld 408576698