[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:
parent
e682048027
commit
45cb28409d
@ -80,13 +80,10 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void IncrementalMarking::RecordWriteFromCode(HeapObject* obj, Object** slot,
|
||||
|
Loading…
Reference in New Issue
Block a user