Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index 1a94881087ee32ad57fe3e59e50847a3146b5ddb..90f77153253f02fa11afa91cbbd17897e87d46d2 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -157,9 +157,9 @@ MaybeHandle<SharedFunctionInfo> Deserializer::DeserializeCode( |
DeserializeDeferredObjects(); |
FlushICacheForNewCodeObjects(); |
result = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(root)); |
+ isolate->heap()->RegisterReservationsForBlackAllocation(reservations_); |
} |
CommitPostProcessedObjects(isolate); |
- isolate->heap()->RegisterReservationsForBlackAllocation(reservations_); |
return scope.CloseAndEscape(result); |
} |
} |