Lines Matching refs:Page
44 HeapObjectIterator::HeapObjectIterator(Page* page) in HeapObjectIterator()
64 Page* cur_page = *(current_page_++); in AdvanceToNextPage()
69 if (cur_page->IsFlagSet(Page::SWEEP_TO_ITERATE)) in AdvanceToNextPage()
74 DCHECK(!cur_page->IsFlagSet(Page::SWEEP_TO_ITERATE)); in AdvanceToNextPage()
268 if (aligned_requested < (block->size - Page::kPageSize)) { in ReserveBlock()
308 capacity_(RoundUp(capacity, Page::kPageSize)), in MemoryAllocator()
507 reservation->size() <= Page::kPageSize); in FreeMemory()
711 Page* PagedSpace::InitializePage(MemoryChunk* chunk, Executability executable) { in InitializePage()
712 Page* page = static_cast<Page*>(chunk); in InitializePage()
713 DCHECK_GE(Page::kAllocatableMemory, page->area_size()); in InitializePage()
724 Page* SemiSpace::InitializePage(MemoryChunk* chunk, Executability executable) { in InitializePage()
731 Page* page = static_cast<Page*>(chunk); in InitializePage()
762 void Page::AllocateFreeListCategories() { in AllocateFreeListCategories()
769 void Page::InitializeFreeListCategories() { in InitializeFreeListCategories()
775 void Page::ReleaseFreeListCategories() { in ReleaseFreeListCategories()
784 Page* Page::ConvertNewToOld(Page* old_page) { in ConvertNewToOld()
790 Page* new_page = old_space->InitializePage(old_page, NOT_EXECUTABLE); in ConvertNewToOld()
910 ZapBlock(base, Page::kObjectStartOffset + commit_area_size, kZapValue); in AllocateChunk()
913 area_start = base + Page::kObjectStartOffset; in AllocateChunk()
972 void Page::ResetAllocatedBytes() { allocated_bytes_ = area_size(); } in AllocateChunk()
974 void Page::AllocateLocalTracker() { in AllocateChunk()
979 bool Page::contains_array_buffers() { in AllocateChunk()
983 void Page::ResetFreeListStatistics() { in AllocateChunk()
987 size_t Page::AvailableInFreeList() { in AllocateChunk()
1011 size_t Page::ShrinkToHighWaterMark() { in AllocateChunk()
1051 void Page::CreateBlackArea(Address start, Address end) { in AllocateChunk()
1053 DCHECK_EQ(Page::FromAddress(start), this); in AllocateChunk()
1055 DCHECK_EQ(Page::FromAddress(end - 1), this); in AllocateChunk()
1063 void Page::DestroyBlackArea(Address start, Address end) { in AllocateChunk()
1065 DCHECK_EQ(Page::FromAddress(start), this); in AllocateChunk()
1067 DCHECK_EQ(Page::FromAddress(end - 1), this); in AllocateChunk()
1178 Page* MemoryAllocator::AllocatePage(size_t size, SpaceType* owner, in AllocateChunk()
1193 template Page* in AllocateChunk()
1196 template Page* in AllocateChunk()
1199 template Page* in AllocateChunk()
1259 return ::RoundUp(Page::kObjectStartOffset, GetCommitPageSize()); in AllocateChunk()
1273 return Page::kPageSize - static_cast<int>(GetCommitPageSize()); in AllocateChunk()
1349 Page* page = static_cast<Page*>(this); in AllocateChunk()
1355 size_t pages = (size + Page::kPageSize - 1) / Page::kPageSize; in AllocateChunk()
1359 slot_set[i].SetPageStart(page_start + i * Page::kPageSize); in AllocateChunk()
1563 Page* p = nullptr; in AllocateChunk()
1601 Page* p = *(it++); in AllocateChunk()
1617 for (Page* page : *this) { in AllocateChunk()
1624 Page* p = Page::FromAddress(addr); in AllocateChunk()
1625 for (Page* page : *this) { in AllocateChunk()
1631 void PagedSpace::RefineAllocatedBytesAfterSweeping(Page* page) { in AllocateChunk()
1650 Page* PagedSpace::RemovePageSafe(int size_in_bytes) { in AllocateChunk()
1656 Page* page = free_list()->GetPageForCategoryType(kHuge); in AllocateChunk()
1672 size_t PagedSpace::AddPage(Page* page) { in AllocateChunk()
1686 void PagedSpace::RemovePage(Page* page) { in AllocateChunk()
1699 size_t PagedSpace::ShrinkPageToHighWaterMark(Page* page) { in AllocateChunk()
1707 for (Page* page : *this) { in AllocateChunk()
1718 for (Page* page : *this) { in AllocateChunk()
1719 DCHECK(page->IsFlagSet(Page::NEVER_EVACUATE)); in AllocateChunk()
1733 Page* page = in AllocateChunk()
1747 for (Page* page : *this) { in AllocateChunk()
1756 for (Page* page : *this) { in AllocateChunk()
1765 Page::FromAllocationAreaAddress(top)->CreateBlackArea(top, limit); in AllocateChunk()
1778 Page::FromAllocationAreaAddress(new_limit)->DestroyBlackArea(new_limit, in AllocateChunk()
1820 Page::FromAllocationAreaAddress(current_top) in AllocateChunk()
1829 Page::FromAllocationAreaAddress(current_top) in AllocateChunk()
1845 Page* page = Page::FromAllocationAreaAddress(current_top); in AllocateChunk()
1873 void PagedSpace::ReleasePage(Page* page) { in AllocateChunk()
1882 if (Page::FromAllocationAreaAddress(allocation_info_.top()) == page) { in AllocateChunk()
1894 for (Page* page : *this) { in AllocateChunk()
1902 for (Page* page : *this) { in AllocateChunk()
1917 DCHECK_EQ(Page::FromAddress(top()), Page::FromAddress(limit() - 1)); in AllocateChunk()
1947 Page* page = Page::FromAddress(new_node->address()); in AllocateChunk()
1981 for (Page* page : *this) { in AllocateChunk()
1988 if (page == Page::FromAllocationAreaAddress(allocation_info_.top())) { in AllocateChunk()
2054 for (Page* page : *this) { in AllocateChunk()
2074 for (Page* page : *this) { in AllocateChunk()
2105 for (Page* page : *this) { in AllocateChunk()
2175 size_t rounded_new_capacity = ::RoundUp(new_capacity, Page::kPageSize); in AllocateChunk()
2202 static_cast<int>(current_capacity_ / Page::kPageSize); in AllocateChunk()
2219 current_page->SetFlags(0, Page::kIsInNewSpaceMask); in AllocateChunk()
2232 Page::kAllocatableMemory, this, NOT_EXECUTABLE); in AllocateChunk()
2238 static_cast<uintptr_t>(Page::kCopyAllFlags)); in AllocateChunk()
2313 for (Page* p : to_space_) { in AllocateChunk()
2334 DCHECK(!Page::IsAtObjectStart(top)); in AllocateChunk()
2345 Address limit = Page::FromAllocationAreaAddress(top)->area_end(); in AllocateChunk()
2453 DCHECK_EQ(Page::FromAllocationAreaAddress(top), in AllocateChunk()
2454 Page::FromAllocationAreaAddress(top_on_previous_step_)); in AllocateChunk()
2485 if (!Page::IsAlignedToPageSize(current)) { in AllocateChunk()
2487 CHECK(!Page::FromAllocationAreaAddress(current)->ContainsLimit(top()) || in AllocateChunk()
2526 Page* page = Page::FromAllocationAreaAddress(current)->next_page(); in AllocateChunk()
2548 DCHECK_GE(maximum_capacity, static_cast<size_t>(Page::kPageSize)); in AllocateChunk()
2549 minimum_capacity_ = RoundDown(initial_capacity, Page::kPageSize); in AllocateChunk()
2551 maximum_capacity_ = RoundDown(maximum_capacity, Page::kPageSize); in AllocateChunk()
2567 const int num_pages = static_cast<int>(current_capacity_ / Page::kPageSize); in AllocateChunk()
2569 Page* new_page = in AllocateChunk()
2571 Page::kAllocatableMemory, this, NOT_EXECUTABLE); in AllocateChunk()
2606 for (Page* p : *this) { in AllocateChunk()
2621 const int delta_pages = static_cast<int>(delta / Page::kPageSize); in AllocateChunk()
2626 Page* new_page = in AllocateChunk()
2628 Page::kAllocatableMemory, this, NOT_EXECUTABLE); in AllocateChunk()
2636 new_page->SetFlags(last_page()->GetFlags(), Page::kCopyOnFlipFlagsMask); in AllocateChunk()
2660 DCHECK(IsAligned(delta, Page::kPageSize)); in AllocateChunk()
2661 int delta_pages = static_cast<int>(delta / Page::kPageSize); in AllocateChunk()
2671 for (Page* page : *this) { in AllocateChunk()
2697 void SemiSpace::RemovePage(Page* page) { in AllocateChunk()
2710 void SemiSpace::PrependPage(Page* page) { in AllocateChunk()
2712 static_cast<uintptr_t>(Page::kCopyAllFlags)); in AllocateChunk()
2740 to->FixPagesFlags(saved_to_space_flags, Page::kCopyOnFlipFlagsMask); in AllocateChunk()
2745 DCHECK_EQ(Page::FromAllocationAreaAddress(mark)->owner(), this); in AllocateChunk()
2748 for (Page* p : PageRange(space_start(), mark)) { in AllocateChunk()
2771 for (Page* page : *this) { in AllocateChunk()
2807 Page* page = Page::FromAllocationAreaAddress(start); in AllocateChunk()
2808 Page* end_page = Page::FromAllocationAreaAddress(end); in AllocateChunk()
2955 Page* page = Page::FromAddress(start); in AllocateChunk()
3046 Page::FromAddress(node->address())->IncreaseAllocatedBytes(*node_size); in AllocateChunk()
3053 size_t FreeList::EvictFreeListItems(Page* page) { in AllocateChunk()
3064 bool FreeList::ContainsPageFreeListItems(Page* page) { in AllocateChunk()
3203 for (Page* page : *this) { in AllocateChunk()
3293 Page* page = main_space->RemovePageSafe(size_in_bytes); in AllocateChunk()
3339 const size_t area_start_offset = RoundUp(Page::kObjectStartOffset, page_size); in AllocateChunk()
3340 for (Page* p : *this) { in AllocateChunk()
3354 for (Page* page : *this) { in AllocateChunk()
3590 DCHECK(!current->IsFlagSet(Page::IS_EXECUTABLE)); in AllocateChunk()
3648 Page* page = Page::FromAddress(object->address()); in AllocateChunk()
3720 void Page::Print() { in AllocateChunk()