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

Unified Diff: vm/raw_object_snapshot.cc

Issue 8520030: Set the loaded_ flag in RawLibrary when it is completely loaded. This (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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.h ('k') | no next file » | 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 1579)
+++ vm/raw_object_snapshot.cc (working copy)
@@ -589,6 +589,8 @@
library.raw_ptr()->num_imports_ = reader->Read<intptr_t>();
library.raw_ptr()->num_imported_into_ = reader->Read<intptr_t>();
library.raw_ptr()->num_anonymous_ = reader->Read<intptr_t>();
+ library.raw_ptr()->corelib_imported_ = reader->Read<bool>();
+ library.raw_ptr()->load_state_ = reader->Read<int8_t>();
// The native resolver is not serialized.
Dart_NativeEntryResolver resolver = reader->Read<Dart_NativeEntryResolver>();
ASSERT(resolver == NULL);
@@ -621,6 +623,8 @@
writer->Write<intptr_t>(ptr()->num_imports_);
writer->Write<intptr_t>(ptr()->num_imported_into_);
writer->Write<intptr_t>(ptr()->num_anonymous_);
+ writer->Write<bool>(ptr()->corelib_imported_);
+ writer->Write<int8_t>(ptr()->load_state_);
// We do not serialize the native resolver over, this needs to be explicitly
// set after deserialization.
writer->Write<Dart_NativeEntryResolver>(NULL);
« no previous file with comments | « vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698