Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 7125feced2d2b192823b2c55c0d26d71378bedb7..d2aa046e1f7e4a270691327ab352134e8d16b281 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2121,7 +2121,7 @@ void WeakCell::initialize(HeapObject* val) { |
// We just have to execute the generational barrier here because we never |
// mark through a weak cell and collect evacuation candidates when we process |
// all weak cells. |
- WriteBarrierMode mode = Marking::IsBlack(ObjectMarking::MarkBitFrom(this)) |
+ WriteBarrierMode mode = ObjectMarking::IsBlack(this) |
? UPDATE_WRITE_BARRIER |
: UPDATE_WEAK_WRITE_BARRIER; |
CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kValueOffset, val, mode); |