Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index d372083a4a63aee1e48dbc4a18950a9ffa79e39e..5fecd77e4a7872245c92d7933a6f379da18be66a 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()->code_space()); |
@@ -510,10 +509,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; |
} |
@@ -925,11 +920,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) == |
@@ -1119,11 +1111,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()); |