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

Unified Diff: runtime/lib/array_patch.dart

Issue 10990083: Reapply change to hide VM-only List implementation classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart:io perf regression. Created 8 years, 3 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 | « runtime/lib/array.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array_patch.dart
diff --git a/runtime/lib/array_patch.dart b/runtime/lib/array_patch.dart
index 502723685bd0961699da040bc0d59ba884059f6c..1e48eccfeef3f81bdba53a6c11efe14a17f6801b 100644
--- a/runtime/lib/array_patch.dart
+++ b/runtime/lib/array_patch.dart
@@ -2,19 +2,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Note that optimizing compiler depends on the algorithm which returns
-// a GrowableObjectArray if length is null, otherwise returns fixed size array.
+// Note that optimizing compiler depends on the algorithm which
+// returns a _GrowableObjectArray if length is null, otherwise returns
+// fixed size array.
patch class ListImplementation<E> {
/* patch */ factory List([int length = null]) {
if (length === null) {
- return new GrowableObjectArray<E>();
+ return new _GrowableObjectArray<E>();
} else {
- return new ObjectArray<E>(length);
+ return new _ObjectArray<E>(length);
}
}
/* patch */ static _from(Iterable other) {
- GrowableObjectArray list = new GrowableObjectArray();
+ _GrowableObjectArray list = new _GrowableObjectArray();
for (final e in other) {
list.add(e);
}
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698