Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index e8f5c78511ab436a07485cbca24067f3f065e759..a217c3fefd14cba2db556123cbd8c61f91c52756 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -477,6 +477,7 @@ bool Deserializer::ReadData(Object** current, Object** limit, int source_space, |
Heap::RootListIndex root_index = static_cast<Heap::RootListIndex>(id); \ |
new_object = isolate->heap()->root(root_index); \ |
emit_write_barrier = isolate->heap()->InNewSpace(new_object); \ |
+ hot_objects_.Add(HeapObject::cast(new_object)); \ |
} else if (where == kPartialSnapshotCache) { \ |
int cache_index = source_.GetInt(); \ |
new_object = isolate->partial_snapshot_cache()->at(cache_index); \ |