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

Unified Diff: runtime/lib/array_patch.dart

Issue 10990055: Hide VM-only coreimpl List implementation types. These should not be (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x64 as well, sigh. 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
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);
}
« runtime/bin/common.cc ('K') | « 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