Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 1c966b350d2aee49a480e56c4f1c53b8619f25bf..2a50c93daa1485b066d54798c1f5108cb3dd73b0 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1278,14 +1278,10 @@ static void VerifyNonPointerSpacePointers(Heap* heap) { |
object = code_it.Next()) |
object->Iterate(&v); |
- // The old data space was normally swept conservatively so that the iterator |
- // doesn't work, so we normally skip the next bit. |
- if (heap->old_data_space()->swept_precisely()) { |
HeapObjectIterator data_it(heap->old_data_space()); |
for (HeapObject* object = data_it.Next(); object != NULL; |
object = data_it.Next()) |
object->Iterate(&v); |
- } |
} |
#endif // VERIFY_HEAP |
@@ -4246,9 +4242,7 @@ AllocationResult Heap::AllocateStruct(InstanceType type) { |
bool Heap::IsHeapIterable() { |
// TODO(hpayer): This function is not correct. Allocation folding in old |
// space breaks the iterability. |
- return (old_pointer_space()->swept_precisely() && |
- old_data_space()->swept_precisely() && |
- new_space_top_after_last_gc_ == new_space()->top()); |
+ return new_space_top_after_last_gc_ == new_space()->top(); |
} |