Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: src/snapshot/deserializer.cc

Issue 1420423009: [heap] Black allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/transitions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/deserializer.cc
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc
index ab5afa7f88ce1d266bd3455c44803d5ba2785c43..1deff33c65ce038a8d51d61b4d6819b5b8b2a324 100644
--- a/src/snapshot/deserializer.cc
+++ b/src/snapshot/deserializer.cc
@@ -127,6 +127,8 @@ MaybeHandle<Object> Deserializer::DeserializePartial(
VisitPointer(&root);
DeserializeDeferredObjects();
+ isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
+
// 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
// new code, which also has to be flushed from instruction cache.
@@ -152,6 +154,7 @@ MaybeHandle<SharedFunctionInfo> Deserializer::DeserializeCode(
result = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(root));
}
CommitPostProcessedObjects(isolate);
+ isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
return scope.CloseAndEscape(result);
}
}
« no previous file with comments | « src/objects-inl.h ('k') | src/transitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698