Index: src/heap/mark-compact-inl.h |
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h |
index 6792f432a3707ea32c124d6b27b28f12fdf2ef37..84b97d16efc94951024c02e0123070033eca5439 100644 |
--- a/src/heap/mark-compact-inl.h |
+++ b/src/heap/mark-compact-inl.h |
@@ -38,19 +38,15 @@ void MarkCompactCollector::UnshiftBlack(HeapObject* obj) { |
} |
void MarkCompactCollector::MarkObject(HeapObject* obj) { |
- if (ObjectMarking::IsWhite<MarkBit::NON_ATOMIC>( |
+ if (ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
obj, MarkingState::Internal(obj))) { |
- ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
- obj, MarkingState::Internal(obj)); |
PushBlack(obj); |
} |
} |
void MinorMarkCompactCollector::MarkObject(HeapObject* obj) { |
- if (ObjectMarking::IsWhite<MarkBit::NON_ATOMIC>( |
+ if (ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
obj, MarkingState::External(obj))) { |
- ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>( |
- obj, MarkingState::External(obj)); |
PushBlack(obj); |
} |
} |