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

Unified Diff: lib/literal_factory.dart

Issue 10012042: Wire GrowableArray to use the internal VM object. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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: lib/literal_factory.dart
===================================================================
--- lib/literal_factory.dart (revision 6332)
+++ lib/literal_factory.dart (working copy)
@@ -10,7 +10,7 @@
factory List.fromLiteral(List elements) {
var list = new GrowableObjectArray<E>();
if (elements.length > 0) {
- list.backingArray = elements;
+ list.data = elements;
list.length = elements.length;
}
return list;
« lib/growable_array.dart ('K') | « lib/lib_impl_sources.gypi ('k') | vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698