Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index 288308776663a389b968e8aca56f09fed65da150..c76e4eca5429698b07f9b04bd2360c3cf3cbc2e8 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -148,7 +148,8 @@ MaybeHandle<Object> Deserializer::DeserializePartial( |
DeserializeDeferredObjects(); |
DeserializeEmbedderFields(embedder_fields_deserializer); |
- isolate->heap()->RegisterReservationsForBlackAllocation(reservations_); |
+ isolate->heap()->RegisterDeserializedObjectsForBlackAllocation( |
+ reservations_, &deserialized_large_objects_); |
// There's no code deserialized here. If this assert fires then that's |
// changed and logging should be added to notify the profiler et al of the |
@@ -172,7 +173,8 @@ MaybeHandle<HeapObject> Deserializer::DeserializeObject(Isolate* isolate) { |
DeserializeDeferredObjects(); |
FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects(); |
result = Handle<HeapObject>(HeapObject::cast(root)); |
- isolate->heap()->RegisterReservationsForBlackAllocation(reservations_); |
+ isolate->heap()->RegisterDeserializedObjectsForBlackAllocation( |
+ reservations_, &deserialized_large_objects_); |
} |
CommitPostProcessedObjects(isolate); |
return scope.CloseAndEscape(result); |