Chromium Code Reviews| Index: runtime/lib/array_patch.dart |
| diff --git a/runtime/lib/array_patch.dart b/runtime/lib/array_patch.dart |
| index b84904b16b378a365bf39f381310912db9d01a43..01d2e1f2bf58c4511106feb983b34ab51a6a14aa 100644 |
| --- a/runtime/lib/array_patch.dart |
| +++ b/runtime/lib/array_patch.dart |
| @@ -5,7 +5,7 @@ |
| // Note that the optimizing compiler depends on the algorithm which |
| // returns a _GrowableObjectArray if length is null, otherwise returns |
| // fixed size array. |
| -patch class ListImplementation<E> { |
| +patch class _ListImpl<E> { |
| /* patch */ factory List([int length = null]) { |
| if (length === null) { |
| return new _GrowableObjectArray<E>(); |
| @@ -14,8 +14,8 @@ patch class ListImplementation<E> { |
| } |
| } |
| - /* patch */ static _from(Iterable other) { |
| - _GrowableObjectArray list = new _GrowableObjectArray(); |
| + /* patch */ factory List.from(Iterable<E> other) { |
| + var list = new _GrowableObjectArray<E>(); |
|
floitsch
2012/10/30 13:17:19
Keep type.
Anders Johnsen
2012/10/30 13:20:44
Done.
|
| for (final e in other) { |
| list.add(e); |
| } |