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

Unified Diff: runtime/lib/byte_array.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/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 0897917bb0d6396229e1897b9c53fe84e5209ca7..a6efae205473d075a9ed794c0464b41f25f6a40b 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -131,9 +131,7 @@ abstract class _ByteArrayBase {
}
Collection map(f(element)) {
- return Collections.map(this,
- new GrowableObjectArray.withCapacity(length),
- f);
+ return Collections.map(this, new List(), f);
}
Dynamic reduce(Dynamic initialValue,
@@ -142,7 +140,7 @@ abstract class _ByteArrayBase {
}
Collection filter(bool f(element)) {
- return Collections.filter(this, new GrowableObjectArray(), f);
+ return Collections.filter(this, new List(), f);
}
bool every(bool f(element)) {
@@ -1610,9 +1608,7 @@ class _ByteArrayViewBase {
}
Collection map(f(element)) {
- return Collections.map(this,
- new GrowableObjectArray.withCapacity(length),
- f);
+ return Collections.map(this, new List(), f);
}
Dynamic reduce(Dynamic initialValue,
@@ -1621,7 +1617,7 @@ class _ByteArrayViewBase {
}
Collection filter(bool f(element)) {
- return Collections.filter(this, new GrowableObjectArray(), f);
+ return Collections.filter(this, new List(), f);
}
bool every(bool f(element)) {

Powered by Google App Engine
This is Rietveld 408576698