Lines Matching refs:Page
31 HeapObjectIterator::HeapObjectIterator(Page* page) { in HeapObjectIterator()
56 Page* cur_page; in AdvanceToNextPage()
60 cur_page = Page::FromAddress(cur_addr_ - 1); in AdvanceToNextPage()
261 if (aligned_requested < (block->size - Page::kPageSize)) { in ReserveBlock()
292 capacity_ = RoundUp(capacity, Page::kPageSize); in SetUp()
293 capacity_executable_ = RoundUp(capacity_executable, Page::kPageSize); in SetUp()
347 reservation->size() <= Page::kPageSize); in FreeMemory()
416 void Page::InitializeAsAnchor(PagedSpace* owner) { in InitializeAsAnchor()
426 Address area_end = start + Page::kPageSize; in Initialize()
429 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize()
677 ZapBlock(base, Page::kObjectStartOffset + commit_area_size); in AllocateChunk()
680 area_start = base + Page::kObjectStartOffset; in AllocateChunk()
702 void Page::ResetFreeListStatistics() { in AllocateChunk()
711 Page* MemoryAllocator::AllocatePage(intptr_t size, PagedSpace* owner, in AllocateChunk()
715 return Page::Initialize(isolate_->heap(), chunk, executable, owner); in AllocateChunk()
869 return RoundUp(Page::kObjectStartOffset, base::OS::CommitPageSize()); in AllocateChunk()
888 return Page::kPageSize - static_cast<int>(base::OS::CommitPageSize()); in AllocateChunk()
926 if (!chunk->InNewSpace() && !static_cast<Page*>(chunk)->WasSwept()) { in AllocateChunk()
1118 Page* p = nullptr; in AllocateChunk()
1141 Page* p = Page::FromAddress(addr); in AllocateChunk()
1156 Page* p = Page::FromAddress(addr); in AllocateChunk()
1190 Page* p = heap()->isolate()->memory_allocator()->AllocatePage(size, this, in AllocateChunk()
1221 Page* page = page_iterator.next(); in AllocateChunk()
1232 void PagedSpace::ReleasePage(Page* page) { in AllocateChunk()
1249 if (Page::FromAllocationTop(allocation_info_.top()) == page) { in AllocateChunk()
1277 Page* page = page_iterator.next(); in AllocateChunk()
1279 if (page == Page::FromAllocationTop(allocation_info_.top())) { in AllocateChunk()
1432 int new_capacity = static_cast<int>(TotalCapacity()) + Page::kPageSize; in AllocateChunk()
1462 int rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize); in AllocateChunk()
1782 DCHECK(maximum_capacity >= Page::kPageSize); in AllocateChunk()
1785 initial_total_capacity_ = RoundDown(initial_capacity, Page::kPageSize); in AllocateChunk()
1787 target_capacity_ = RoundDown(target_capacity, Page::kPageSize); in AllocateChunk()
1788 maximum_total_capacity_ = RoundDown(maximum_capacity, Page::kPageSize); in AllocateChunk()
1806 int pages = total_capacity_ / Page::kPageSize; in AllocateChunk()
1816 NewSpacePage::Initialize(heap(), start_ + i * Page::kPageSize, this); in AllocateChunk()
1860 DCHECK((new_capacity & Page::kPageAlignmentMask) == 0); in AllocateChunk()
1863 int pages_before = total_capacity_ / Page::kPageSize; in AllocateChunk()
1864 int pages_after = new_capacity / Page::kPageSize; in AllocateChunk()
1878 Address page_address = start_ + i * Page::kPageSize; in AllocateChunk()
1893 DCHECK((new_capacity & Page::kPageAlignmentMask) == 0); in AllocateChunk()
1906 int pages_after = new_capacity / Page::kPageSize; in AllocateChunk()
1908 NewSpacePage::FromAddress(start_ + (pages_after - 1) * Page::kPageSize); in AllocateChunk()
2292 intptr_t FreeListCategory::EvictFreeListItemsInList(Page* p) { in AllocateChunk()
2297 Page* page_for_node = Page::FromAddress(cur_node->address()); in AllocateChunk()
2323 bool FreeListCategory::ContainsPageFreeListItemsInList(Page* p) { in AllocateChunk()
2326 if (Page::FromAddress(node->address()) == p) return true; in AllocateChunk()
2337 Page* page = Page::FromAddress(node->address()); in AllocateChunk()
2378 Page* page_for_node = Page::FromAddress(cur_node->address()); in AllocateChunk()
2484 Page* page = Page::FromAddress(start); in AllocateChunk()
2518 Page::FromAddress(node->address()) in AllocateChunk()
2528 Page* page = nullptr; in AllocateChunk()
2547 page = Page::FromAddress(node->address()); in AllocateChunk()
2557 page = Page::FromAddress(node->address()); in AllocateChunk()
2564 page = Page::FromAddress(node->address()); in AllocateChunk()
2571 page = Page::FromAddress(node->address()); in AllocateChunk()
2685 intptr_t FreeList::EvictFreeListItems(Page* p) { in AllocateChunk()
2696 bool FreeList::ContainsPageFreeListItems(Page* p) { in AllocateChunk()
2793 Page* page = iterator.next(); in AllocateChunk()
2796 Address address = page->OffsetToAddress(Page::kPageSize - size); in AllocateChunk()
2805 if (!Page::FromAllocationTop(allocation_info_.top())->CanAllocate()) { in AllocateChunk()
3191 Page::FromAddress(object->address())->ResetProgressBar(); in AllocateChunk()
3192 Page::FromAddress(object->address())->ResetLiveBytes(); in AllocateChunk()
3269 Page* page = Page::FromAddress(object->address()); in AllocateChunk()
3349 void Page::Print() { in AllocateChunk()