[heap] Remove unecessary marking bit check in RecordWriteSlow.

BUG=

Review URL: https://codereview.chromium.org/1430943004

Cr-Commit-Position: refs/heads/master@{#31766}
This commit is contained in:
hpayer 2015-11-03 16:28:46 -08:00 committed by Commit bot
parent e682048027
commit 45cb28409d

View File

@ -80,11 +80,8 @@ bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, Object** slot,
void IncrementalMarking::RecordWriteSlow(HeapObject* obj, Object** slot,
Object* value) {
if (BaseRecordWrite(obj, slot, value) && slot != NULL) {
MarkBit obj_bit = Marking::MarkBitFrom(obj);
if (Marking::IsBlack(obj_bit)) {
// Object is not going to be rescanned we need to record the slot.
heap_->mark_compact_collector()->RecordSlot(obj, slot, value);
}
// Object is not going to be rescanned we need to record the slot.
heap_->mark_compact_collector()->RecordSlot(obj, slot, value);
}
}