Lines Matching refs:page

31 HeapObjectIterator::HeapObjectIterator(Page* page) {  in HeapObjectIterator()  argument
32 Space* owner = page->owner(); in HeapObjectIterator()
33 DCHECK(owner == page->heap()->old_space() || in HeapObjectIterator()
34 owner == page->heap()->map_space() || in HeapObjectIterator()
35 owner == page->heap()->code_space()); in HeapObjectIterator()
36 Initialize(reinterpret_cast<PagedSpace*>(owner), page->area_start(), in HeapObjectIterator()
37 page->area_end(), kOnePageOnly); in HeapObjectIterator()
38 DCHECK(page->WasSwept() || page->SweepingCompleted()); in HeapObjectIterator()
437 NewSpacePage* page = static_cast<NewSpacePage*>(chunk); in Initialize() local
438 heap->incremental_marking()->SetNewSpacePageFlags(page); in Initialize()
439 return page; in Initialize()
1221 Page* page = page_iterator.next(); in AllocateChunk() local
1222 page->ResetFreeListStatistics(); in AllocateChunk()
1232 void PagedSpace::ReleasePage(Page* page) { in AllocateChunk() argument
1233 DCHECK(page->LiveBytes() == 0); in AllocateChunk()
1234 DCHECK(AreaSize() == page->area_size()); in AllocateChunk()
1236 if (page->WasSwept()) { in AllocateChunk()
1237 intptr_t size = free_list_.EvictFreeListItems(page); in AllocateChunk()
1242 if (page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)) { in AllocateChunk()
1244 page->ClearFlag(MemoryChunk::SCAN_ON_SCAVENGE); in AllocateChunk()
1247 DCHECK(!free_list_.ContainsPageFreeListItems(page)); in AllocateChunk()
1249 if (Page::FromAllocationTop(allocation_info_.top()) == page) { in AllocateChunk()
1254 if (page->next_chunk() != NULL) { in AllocateChunk()
1255 DCHECK(page->prev_chunk() != NULL); in AllocateChunk()
1256 page->Unlink(); in AllocateChunk()
1259 AccountUncommitted(static_cast<intptr_t>(page->size())); in AllocateChunk()
1260 heap()->QueueMemoryChunkForFree(page); in AllocateChunk()
1277 Page* page = page_iterator.next(); in AllocateChunk() local
1278 CHECK(page->owner() == this); in AllocateChunk()
1279 if (page == Page::FromAllocationTop(allocation_info_.top())) { in AllocateChunk()
1282 CHECK(page->WasSwept()); in AllocateChunk()
1283 HeapObjectIterator it(page); in AllocateChunk()
1284 Address end_of_previous_object = page->area_start(); in AllocateChunk()
1285 Address top = page->area_end(); in AllocateChunk()
1312 CHECK_LE(black_size, page->LiveBytes()); in AllocateChunk()
1756 NewSpacePage* page = NewSpacePage::FromLimit(current)->next_page(); in AllocateChunk() local
1758 CHECK(!page->is_anchor()); in AllocateChunk()
1759 current = page->area_start(); in AllocateChunk()
1940 NewSpacePage* page = anchor_.next_page(); in AllocateChunk() local
1941 while (page != &anchor_) { in AllocateChunk()
1942 page->set_owner(this); in AllocateChunk()
1943 page->SetFlags(flags, mask); in AllocateChunk()
1945 page->ClearFlag(MemoryChunk::IN_FROM_SPACE); in AllocateChunk()
1946 page->SetFlag(MemoryChunk::IN_TO_SPACE); in AllocateChunk()
1947 page->ClearFlag(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK); in AllocateChunk()
1948 page->ResetLiveBytes(); in AllocateChunk()
1950 page->SetFlag(MemoryChunk::IN_FROM_SPACE); in AllocateChunk()
1951 page->ClearFlag(MemoryChunk::IN_TO_SPACE); in AllocateChunk()
1953 DCHECK(page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)); in AllocateChunk()
1954 DCHECK(page->IsFlagSet(MemoryChunk::IN_TO_SPACE) || in AllocateChunk()
1955 page->IsFlagSet(MemoryChunk::IN_FROM_SPACE)); in AllocateChunk()
1956 page = page->next_page(); in AllocateChunk()
2011 NewSpacePage* page = anchor_.next_page(); in AllocateChunk() local
2013 while (page != &anchor_) { in AllocateChunk()
2014 CHECK(page->semi_space() == this); in AllocateChunk()
2015 CHECK(page->InNewSpace()); in AllocateChunk()
2016 CHECK(page->IsFlagSet(is_from_space ? MemoryChunk::IN_FROM_SPACE in AllocateChunk()
2018 CHECK(!page->IsFlagSet(is_from_space ? MemoryChunk::IN_TO_SPACE in AllocateChunk()
2020 CHECK(page->IsFlagSet(MemoryChunk::POINTERS_TO_HERE_ARE_INTERESTING)); in AllocateChunk()
2024 if (page->heap()->incremental_marking()->IsMarking()) { in AllocateChunk()
2025 CHECK(page->IsFlagSet(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING)); in AllocateChunk()
2028 !page->IsFlagSet(MemoryChunk::POINTERS_FROM_HERE_ARE_INTERESTING)); in AllocateChunk()
2033 CHECK(page->IsFlagSet(MemoryChunk::SCAN_ON_SCAVENGE)); in AllocateChunk()
2034 CHECK(page->prev_page()->next_page() == page); in AllocateChunk()
2035 page = page->next_page(); in AllocateChunk()
2043 NewSpacePage* page = NewSpacePage::FromLimit(start); in AllocateChunk() local
2045 SemiSpace* space = page->semi_space(); in AllocateChunk()
2050 if (page == end_page) { in AllocateChunk()
2053 while (page != end_page) { in AllocateChunk()
2054 page = page->next_page(); in AllocateChunk()
2055 CHECK_NE(page, space->anchor()); in AllocateChunk()
2337 Page* page = Page::FromAddress(node->address()); in AllocateChunk() local
2338 while ((node != nullptr) && !page->CanAllocate()) { in AllocateChunk()
2340 page->add_available_in_free_list(type_, -(node->Size())); in AllocateChunk()
2484 Page* page = Page::FromAddress(start); in AllocateChunk() local
2488 page->add_non_available_small_blocks(size_in_bytes); in AllocateChunk()
2498 page->add_available_in_small_free_list(size_in_bytes); in AllocateChunk()
2501 page->add_available_in_medium_free_list(size_in_bytes); in AllocateChunk()
2504 page->add_available_in_large_free_list(size_in_bytes); in AllocateChunk()
2507 page->add_available_in_huge_free_list(size_in_bytes); in AllocateChunk()
2528 Page* page = nullptr; in AllocateChunk() local
2547 page = Page::FromAddress(node->address()); in AllocateChunk()
2548 page->add_available_in_large_free_list(-(*node_size)); in AllocateChunk()
2557 page = Page::FromAddress(node->address()); in AllocateChunk()
2558 page->add_available_in_small_free_list(-(*node_size)); in AllocateChunk()
2564 page = Page::FromAddress(node->address()); in AllocateChunk()
2565 page->add_available_in_medium_free_list(-(*node_size)); in AllocateChunk()
2571 page = Page::FromAddress(node->address()); in AllocateChunk()
2572 page->add_available_in_large_free_list(-(*node_size)); in AllocateChunk()
2793 Page* page = iterator.next(); in AllocateChunk() local
2794 int size = static_cast<int>(page->non_available_small_blocks()); in AllocateChunk()
2796 Address address = page->OffsetToAddress(Page::kPageSize - size); in AllocateChunk()
3085 LargePage* page = first_page_; in AllocateChunk() local
3087 LOG(heap()->isolate(), DeleteEvent("LargeObjectChunk", page->address())); in AllocateChunk()
3091 space, kAllocationActionFree, page->size()); in AllocateChunk()
3092 heap()->isolate()->memory_allocator()->Free(page); in AllocateChunk()
3106 LargePage* page = heap()->isolate()->memory_allocator()->AllocateLargePage( in AllocateChunk() local
3108 if (page == NULL) return AllocationResult::Retry(identity()); in AllocateChunk()
3109 DCHECK(page->area_size() >= object_size); in AllocateChunk()
3111 size_ += static_cast<int>(page->size()); in AllocateChunk()
3112 AccountCommitted(static_cast<intptr_t>(page->size())); in AllocateChunk()
3115 page->set_next_page(first_page_); in AllocateChunk()
3116 first_page_ = page; in AllocateChunk()
3120 uintptr_t base = reinterpret_cast<uintptr_t>(page) / MemoryChunk::kAlignment; in AllocateChunk()
3121 uintptr_t limit = base + (page->size() - 1) / MemoryChunk::kAlignment; in AllocateChunk()
3126 entry->value = page; in AllocateChunk()
3129 HeapObject* object = page->GetObject(); in AllocateChunk()
3160 LargePage* page = FindPage(a); in AllocateChunk() local
3161 if (page != NULL) { in AllocateChunk()
3162 return page->GetObject(); in AllocateChunk()
3174 LargePage* page = reinterpret_cast<LargePage*>(e->value); in AllocateChunk() local
3175 DCHECK(page->is_valid()); in AllocateChunk()
3176 if (page->Contains(a)) { in AllocateChunk()
3177 return page; in AllocateChunk()
3209 LargePage* page = current; in AllocateChunk() local
3221 size_ -= static_cast<int>(page->size()); in AllocateChunk()
3222 AccountUncommitted(static_cast<intptr_t>(page->size())); in AllocateChunk()
3230 uintptr_t base = reinterpret_cast<uintptr_t>(page) / alignment; in AllocateChunk()
3231 uintptr_t limit = base + (page->size() - 1) / alignment; in AllocateChunk()
3237 heap()->QueueMemoryChunkForFree(page); in AllocateChunk()
3269 Page* page = Page::FromAddress(object->address()); in AllocateChunk() local
3270 CHECK(object->address() == page->area_start()); in AllocateChunk()