Chromium Code Reviews

Unified Diff: src/snapshot/partial-serializer.cc

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | src/snapshot/serializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/partial-serializer.cc
diff --git a/src/snapshot/partial-serializer.cc b/src/snapshot/partial-serializer.cc
index 308d01eb75656a0274427d79494d91ba952f235c..d3e60e0e4e30273fc5482dc391996d5fbd47f545 100644
--- a/src/snapshot/partial-serializer.cc
+++ b/src/snapshot/partial-serializer.cc
@@ -41,7 +41,7 @@ void PartialSerializer::Serialize(Object** o, bool include_global_proxy) {
context->set_math_random_cache(isolate_->heap()->undefined_value());
}
}
- VisitPointer(o);
+ VisitRootPointer(Root::kPartialSnapshotCache, o);
SerializeDeferredObjects();
SerializeEmbedderFields();
Pad();
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | src/snapshot/serializer.h » ('j') | no next file with comments »

Powered by Google App Engine