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

Unified Diff: src/heap/heap.cc

Issue 1072923003: Serializer: canonicalize cleared weak cells. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 2f3a1a8c1c7d300e892223b0a9d40a3aad530e49..cff796ab4a9730e8ad3869d764cdee2e4e08186e 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -3108,6 +3108,9 @@ void Heap::CreateInitialObjects() {
*factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED));
InitializeAllocationSitesScratchpad();
+ set_cleared_weak_cell(*factory->NewWeakCell(factory->undefined_value()));
+ cleared_weak_cell()->unchecked_clear();
+
// Initialize keyed lookup cache.
isolate_->keyed_lookup_cache()->Clear();
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698