Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 39e5100baeb0a75d8b4d8c7beea469471ccde2e8..307328704673eb844a6d33d65d10500a1ce1b130 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -41,8 +41,7 @@ HeapObjectIterator::HeapObjectIterator(PagedSpace* space, |
HeapObjectIterator::HeapObjectIterator(Page* page, |
HeapObjectCallback size_func) { |
Space* owner = page->owner(); |
- DCHECK(owner == page->heap()->old_pointer_space() || |
- owner == page->heap()->old_data_space() || |
+ DCHECK(owner == page->heap()->old_space() || |
owner == page->heap()->map_space() || |
owner == page->heap()->cell_space() || |
owner == page->heap()->property_cell_space() || |
@@ -511,10 +510,6 @@ MemoryChunk* MemoryChunk::Initialize(Heap* heap, Address base, size_t size, |
chunk->SetFlag(IS_EXECUTABLE); |
} |
- if (owner == heap->old_data_space()) { |
- chunk->SetFlag(CONTAINS_ONLY_DATA); |
- } |
- |
return chunk; |
} |
@@ -926,11 +921,8 @@ void MemoryChunk::IncrementLiveBytesFromMutator(Address address, int by) { |
STATIC_ASSERT(static_cast<ObjectSpace>(1 << AllocationSpace::NEW_SPACE) == |
ObjectSpace::kObjectSpaceNewSpace); |
-STATIC_ASSERT(static_cast<ObjectSpace>(1 |
- << AllocationSpace::OLD_POINTER_SPACE) == |
- ObjectSpace::kObjectSpaceOldPointerSpace); |
-STATIC_ASSERT(static_cast<ObjectSpace>(1 << AllocationSpace::OLD_DATA_SPACE) == |
- ObjectSpace::kObjectSpaceOldDataSpace); |
+STATIC_ASSERT(static_cast<ObjectSpace>(1 << AllocationSpace::OLD_SPACE) == |
+ ObjectSpace::kObjectSpaceOldSpace); |
STATIC_ASSERT(static_cast<ObjectSpace>(1 << AllocationSpace::CODE_SPACE) == |
ObjectSpace::kObjectSpaceCodeSpace); |
STATIC_ASSERT(static_cast<ObjectSpace>(1 << AllocationSpace::CELL_SPACE) == |
@@ -1121,11 +1113,7 @@ void PagedSpace::ReleasePage(Page* page) { |
page->Unlink(); |
} |
- if (page->IsFlagSet(MemoryChunk::CONTAINS_ONLY_DATA)) { |
- heap()->isolate()->memory_allocator()->Free(page); |
- } else { |
- heap()->QueueMemoryChunkForFree(page); |
- } |
+ heap()->QueueMemoryChunkForFree(page); |
DCHECK(Capacity() > 0); |
accounting_stats_.ShrinkSpace(AreaSize()); |