Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 30129c5d458d7206cab3ef05c24fb088e3ea369b..579228c2dce71ff261f47032bc6a3460e6c0b6f7 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -628,9 +628,9 @@ void IncrementalMarking::ProcessWeakCells() { |
Object* the_hole_value = heap()->the_hole_value(); |
Object* weak_cell_obj = heap()->encountered_weak_cells(); |
- Object* weak_cell_head = Smi::kZero; |
+ Object* weak_cell_head = Smi::FromInt(0); |
WeakCell* prev_weak_cell_obj = NULL; |
- while (weak_cell_obj != Smi::kZero) { |
+ while (weak_cell_obj != Smi::FromInt(0)) { |
WeakCell* weak_cell = reinterpret_cast<WeakCell*>(weak_cell_obj); |
// We do not insert cleared weak cells into the list, so the value |
// cannot be a Smi here. |
@@ -648,7 +648,7 @@ void IncrementalMarking::ProcessWeakCells() { |
weak_cell_obj = weak_cell->next(); |
weak_cell->clear_next(the_hole_value); |
} else { |
- if (weak_cell_head == Smi::kZero) { |
+ if (weak_cell_head == Smi::FromInt(0)) { |
weak_cell_head = weak_cell; |
} |
prev_weak_cell_obj = weak_cell; |