Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index 5c4671c26920fabb5002f40d002a51fe35654842..caf90b07e059ddc69e9767501e9816962c985869 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -144,7 +144,7 @@ MaybeHandle<Object> Deserializer::DeserializePartial( |
OldSpace* code_space = isolate_->heap()->code_space(); |
Address start_address = code_space->top(); |
Object* root; |
- VisitPointer(&root); |
+ VisitRootPointer(Root::kPartialSnapshotCache, &root); |
DeserializeDeferredObjects(); |
DeserializeEmbedderFields(embedder_fields_deserializer); |
@@ -168,7 +168,7 @@ MaybeHandle<HeapObject> Deserializer::DeserializeObject(Isolate* isolate) { |
{ |
DisallowHeapAllocation no_gc; |
Object* root; |
- VisitPointer(&root); |
+ VisitRootPointer(Root::kPartialSnapshotCache, &root); |
DeserializeDeferredObjects(); |
FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects(); |
result = Handle<HeapObject>(HeapObject::cast(root)); |
@@ -196,7 +196,7 @@ Deserializer::~Deserializer() { |
// This is called on the roots. It is the driver of the deserialization |
// process. It is also called on the body of each function. |
-void Deserializer::VisitPointers(Object** start, Object** end) { |
+void Deserializer::VisitRootPointers(Root root, Object** start, Object** end) { |
// The space must be new space. Any other space would cause ReadChunk to try |
// to update the remembered using NULL as the address. |
ReadData(start, end, NEW_SPACE, NULL); |