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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 11824067: Support for embedded Dart scripts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
Index: runtime/vm/raw_object_snapshot.cc
===================================================================
--- runtime/vm/raw_object_snapshot.cc (revision 16928)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -834,6 +834,10 @@
stream ^= reader->ReadObjectImpl();
script.set_tokens(stream);
+ script.raw_ptr()->line_offset_ = reader->Read<int32_t>();
+ script.raw_ptr()->col_offset_ = reader->Read<int32_t>();
+ script.raw_ptr()->kind_ = reader->Read<int8_t>();
+
return script.raw();
}
@@ -856,6 +860,10 @@
// Write out all the object pointer fields.
writer->WriteObjectImpl(ptr()->url_);
writer->WriteObjectImpl(ptr()->tokens_);
+
+ writer->Write<int32_t>(ptr()->line_offset_);
+ writer->Write<int32_t>(ptr()->col_offset_);
+ writer->Write<int8_t>(ptr()->kind_);
}
« runtime/vm/raw_object.h ('K') | « runtime/vm/raw_object.h ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698