Index: src/snapshot/serialize.cc |
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc |
index 7ba1c278a0d9ae24ae39c7df1015e1d312960fdf..4d2f9590b86136ef5d01012500699223d0068a6e 100644 |
--- a/src/snapshot/serialize.cc |
+++ b/src/snapshot/serialize.cc |
@@ -643,6 +643,10 @@ void Deserializer::VisitPointers(Object** start, Object** end) { |
ReadData(start, end, NEW_SPACE, NULL); |
} |
+void Deserializer::Synchronize(VisitorSynchronization::SyncTag tag) { |
+ static const byte expected = kSynchronize; |
+ CHECK_EQ(expected, source_.Get()); |
+} |
void Deserializer::DeserializeDeferredObjects() { |
for (int code = source_.Get(); code != kSynchronize; code = source_.Get()) { |
@@ -1743,6 +1747,7 @@ void StartupSerializer::Synchronize(VisitorSynchronization::SyncTag tag) { |
// We expect the builtins tag after builtins have been serialized. |
DCHECK(!serializing_builtins_ || tag == VisitorSynchronization::kBuiltins); |
serializing_builtins_ = (tag == VisitorSynchronization::kHandleScope); |
+ sink_->Put(kSynchronize, "Synchronize"); |
} |
void Serializer::PutRoot(int root_index, |