Index: src/heap/mark-compact-inl.h |
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h |
index ea7e2a4a543e8f3f3ebe7111aefa047c64a139fd..6b197cf43ba3d70e8d7195b1533b3a88113b57c2 100644 |
--- a/src/heap/mark-compact-inl.h |
+++ b/src/heap/mark-compact-inl.h |
@@ -122,6 +122,9 @@ void CodeFlusher::ClearNextCandidate(SharedFunctionInfo* candidate) { |
template <LiveObjectIterationMode T> |
HeapObject* LiveObjectIterator<T>::Next() { |
+ Map* one_word_filler = heap()->one_pointer_filler_map(); |
+ Map* two_word_filler = heap()->two_pointer_filler_map(); |
+ Map* free_space_map = heap()->free_space_map(); |
while (!it_.Done()) { |
HeapObject* object = nullptr; |
while (current_cell_ != 0) { |
@@ -193,7 +196,8 @@ HeapObject* LiveObjectIterator<T>::Next() { |
// We found a live object. |
if (object != nullptr) { |
- if (object->IsFiller()) { |
+ if (map == one_word_filler || map == two_word_filler || |
ulan
2017/03/24 13:14:18
Can you add a comment why IsFiller doesn't work he
|
+ map == free_space_map) { |
// There are two reasons why we can get black or grey fillers: |
// 1) Black areas together with slack tracking may result in black one |
// word filler objects. |