Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 0f43ad956fb9e79b21af8449fdf1bc2b81cda2f2..b2ae93dec66b590e8f29aeb797c2b81f7b33aebd 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1406,8 +1406,8 @@ class RootMarkingVisitor : public ObjectVisitor { |
void MarkObjectByPointer(Object** p) { |
if (!(*p)->IsHeapObject()) return; |
- // Replace flat cons strings in place. |
HeapObject* object = HeapObject::cast(*p); |
+ |
MarkBit mark_bit = Marking::MarkBitFrom(object); |
if (Marking::IsBlackOrGrey(mark_bit)) return; |