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

Unified Diff: src/snapshot/serialize.cc

Issue 1420423009: [heap] Black allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« src/heap/heap.cc ('K') | « 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/serialize.cc
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
index 89d37be1df467879f6703f553bd863abab391229..67152ebcdda4ab0b8c06f27f66f3cc0dd987875e 100644
--- a/src/snapshot/serialize.cc
+++ b/src/snapshot/serialize.cc
@@ -601,6 +601,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.
@@ -627,6 +629,7 @@ MaybeHandle<SharedFunctionInfo> Deserializer::DeserializeCode(
result = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(root));
}
CommitPostProcessedObjects(isolate);
+ isolate->heap()->RegisterReservationsForBlackAllocation(reservations_);
return scope.CloseAndEscape(result);
}
}
« src/heap/heap.cc ('K') | « src/objects-inl.h ('k') | src/transitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698