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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 8872037: Adjust index of type parameters at finalization time (fix issue 718). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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/vm/raw_object_snapshot.cc
===================================================================
--- runtime/vm/raw_object_snapshot.cc (revision 2282)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -211,6 +211,7 @@
// Set all non object fields.
type_parameter.set_index(reader->Read<intptr_t>());
+ type_parameter.set_type_state(reader->Read<int8_t>());
// Set all the object fields.
// TODO(5411462): Need to assert No GC can happen here, even though
@@ -237,7 +238,9 @@
// Write out the class information.
writer->WriteObjectHeader(kObjectId, Object::kTypeParameterClass);
+ // Write out all the non object pointer fields.
writer->Write<intptr_t>(ptr()->index_);
+ writer->Write<int8_t>(ptr()->type_state_);
// Write out all the object pointer fields.
visitor.VisitPointers(from(), to());

Powered by Google App Engine
This is Rietveld 408576698