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

Unified Diff: vm/raw_object_snapshot.cc

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
« lib/growable_array.dart ('K') | « vm/raw_object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object_snapshot.cc
===================================================================
--- vm/raw_object_snapshot.cc (revision 6332)
+++ vm/raw_object_snapshot.cc (working copy)
@@ -1752,7 +1752,12 @@
// Read the length so that we can determine instance size to allocate.
GrowableObjectArray& array = GrowableObjectArray::ZoneHandle(
- reader->isolate(), reader->NewGrowableObjectArray());
+ reader->isolate(), GrowableObjectArray::null());
+ if (kind == Snapshot::kFull) {
+ array = reader->NewGrowableObjectArray();
+ } else {
+ array = GrowableObjectArray::New(0);
+ }
reader->AddBackwardReference(object_id, &array);
intptr_t length = reader->ReadSmiValue();
array.SetLength(length);
« lib/growable_array.dart ('K') | « vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698