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

Unified Diff: vm/raw_object_snapshot.cc

Issue 11421117: Fix for issue 6359 - Make snapshots platform independent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 1 month 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 | « vm/raw_object.cc ('k') | vm/snapshot.h » ('j') | 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 15534)
+++ vm/raw_object_snapshot.cc (working copy)
@@ -57,9 +57,9 @@
cls.set_tags(tags);
// Set all non object fields.
- cls.set_instance_size(reader->ReadIntptrValue());
- cls.set_type_arguments_field_offset(reader->ReadIntptrValue());
- cls.set_next_field_offset(reader->ReadIntptrValue());
+ cls.set_instance_size_in_words(reader->ReadIntptrValue());
+ cls.set_type_arguments_field_offset_in_words(reader->ReadIntptrValue());
+ cls.set_next_field_offset_in_words(reader->ReadIntptrValue());
cls.set_num_native_fields(reader->ReadIntptrValue());
cls.set_token_pos(reader->ReadIntptrValue());
cls.set_state_bits(reader->Read<uint8_t>());
@@ -96,9 +96,9 @@
// Write out all the non object pointer fields.
// NOTE: cpp_vtable_ is not written.
writer->WriteIntptrValue(ptr()->id_);
- writer->WriteIntptrValue(ptr()->instance_size_);
- writer->WriteIntptrValue(ptr()->type_arguments_field_offset_);
- writer->WriteIntptrValue(ptr()->next_field_offset_);
+ writer->WriteIntptrValue(ptr()->instance_size_in_words_);
+ writer->WriteIntptrValue(ptr()->type_arguments_field_offset_in_words_);
+ writer->WriteIntptrValue(ptr()->next_field_offset_in_words_);
writer->WriteIntptrValue(ptr()->num_native_fields_);
writer->WriteIntptrValue(ptr()->token_pos_);
writer->Write<uint8_t>(ptr()->state_bits_);
« no previous file with comments | « vm/raw_object.cc ('k') | vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698