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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 132623007: Fix snapshotting of TypeArguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object_snapshot.cc
===================================================================
--- runtime/vm/raw_object_snapshot.cc (revision 32455)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -449,6 +449,8 @@
reader->AddBackRef(object_id, &type_arguments, kIsDeserialized);
// Now set all the object fields.
+ *reader->ArrayHandle() ^= reader->ReadObjectImpl();
+ type_arguments.set_instantiations(*reader->ArrayHandle());
for (intptr_t i = 0; i < len; i++) {
*reader->TypeHandle() ^= reader->ReadObjectImpl();
type_arguments.SetTypeAt(i, *reader->TypeHandle());
@@ -493,6 +495,9 @@
// Write out the length field.
writer->Write<RawObject*>(ptr()->length_);
+ // Write out the instantiations field.
+ writer->WriteObjectImpl(ptr()->instantiations_);
+
// Write out the individual types.
intptr_t len = Smi::Value(ptr()->length_);
for (intptr_t i = 0; i < len; i++) {
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698