| Index: src/snapshot/deserializer.cc
|
| diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc
|
| index ab17b28bb2505196a5fa70716858927ea42f1fae..7863f4a1fe386e8627b5f1666cd8442598371001 100644
|
| --- a/src/snapshot/deserializer.cc
|
| +++ b/src/snapshot/deserializer.cc
|
| @@ -140,7 +140,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);
|
|
|
| @@ -164,7 +164,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));
|
| @@ -192,7 +192,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);
|
|
|