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

Unified Diff: src/objects-inl.h

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/objects.h ('k') | src/snapshot/serialize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 5f3d0747e6a5b4c5aa337c01d89fc72ca86e21c2..d8e1f579a75ff9f2b033ba218fe28e69f8a64266 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1909,6 +1909,11 @@ void WeakCell::clear() {
}
+void WeakCell::unchecked_clear() {
+ WRITE_FIELD(this, kValueOffset, Smi::FromInt(0));
+}
+
+
void WeakCell::initialize(HeapObject* val) {
WRITE_FIELD(this, kValueOffset, val);
WRITE_BARRIER(GetHeap(), this, kValueOffset, val);
« no previous file with comments | « src/objects.h ('k') | src/snapshot/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698