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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 10828053: Support const modifier in fields, variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/raw_object.h ('k') | tests/co19/co19-runtime.status » ('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 9982)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -498,6 +498,7 @@
field.set_token_pos(reader->ReadIntptrValue());
field.set_is_static(reader->Read<bool>());
field.set_is_final(reader->Read<bool>());
+ field.set_is_const(reader->Read<bool>());
field.set_has_initializer(reader->Read<bool>());
// Set all the object fields.
@@ -529,6 +530,7 @@
writer->WriteIntptrValue(ptr()->token_pos_);
writer->Write<bool>(ptr()->is_static_);
writer->Write<bool>(ptr()->is_final_);
+ writer->Write<bool>(ptr()->is_const_);
writer->Write<bool>(ptr()->has_initializer_);
// Write out all the object pointer fields.
« no previous file with comments | « runtime/vm/raw_object.h ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698