Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 90fc13616c65f750b974ce58ff821742603486f8..b56af23c4931dbf50e19ede19870a6817ed48732 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2637,7 +2637,7 @@ |
void MarkCompactCollector::ProcessAndClearWeakCells() { |
- HeapObject* the_hole = heap()->the_hole_value(); |
+ HeapObject* undefined = heap()->undefined_value(); |
Object* weak_cell_obj = heap()->encountered_weak_cells(); |
while (weak_cell_obj != Smi::FromInt(0)) { |
WeakCell* weak_cell = reinterpret_cast<WeakCell*>(weak_cell_obj); |
@@ -2672,19 +2672,19 @@ |
RecordSlot(slot, slot, *slot); |
} |
weak_cell_obj = weak_cell->next(); |
- weak_cell->set_next(the_hole, SKIP_WRITE_BARRIER); |
+ weak_cell->set_next(undefined, SKIP_WRITE_BARRIER); |
} |
heap()->set_encountered_weak_cells(Smi::FromInt(0)); |
} |
void MarkCompactCollector::AbortWeakCells() { |
- Object* the_hole = heap()->the_hole_value(); |
+ Object* undefined = heap()->undefined_value(); |
Object* weak_cell_obj = heap()->encountered_weak_cells(); |
while (weak_cell_obj != Smi::FromInt(0)) { |
WeakCell* weak_cell = reinterpret_cast<WeakCell*>(weak_cell_obj); |
weak_cell_obj = weak_cell->next(); |
- weak_cell->set_next(the_hole, SKIP_WRITE_BARRIER); |
+ weak_cell->set_next(undefined, SKIP_WRITE_BARRIER); |
} |
heap()->set_encountered_weak_cells(Smi::FromInt(0)); |
} |