• Home
  • Raw
  • Download

Lines Matching refs:Page

69 HeapObjectIterator::HeapObjectIterator(Page* page,  in HeapObjectIterator()
106 Page* cur_page; in AdvanceToNextPage()
110 cur_page = Page::FromAddress(cur_addr_ - 1); in AdvanceToNextPage()
222 if (aligned_requested >= (current.size - Page::kPageSize)) { in AllocateRawMemory()
274 capacity_ = RoundUp(capacity, Page::kPageSize); in SetUp()
275 capacity_executable_ = RoundUp(capacity_executable, Page::kPageSize); in SetUp()
386 void Page::InitializeAsAnchor(PagedSpace* owner) { in InitializeAsAnchor()
397 Address area_end = start + Page::kPageSize; in Initialize()
401 Page::kPageSize, in Initialize()
550 area_start = base + Page::kObjectStartOffset; in AllocateChunk()
575 Page* MemoryAllocator::AllocatePage(PagedSpace* owner, in AllocatePage()
583 return Page::Initialize(isolate_->heap(), chunk, executable, owner); in AllocatePage()
707 return RoundUp(Page::kObjectStartOffset, OS::CommitPageSize()); in CodePageGuardStartOffset()
726 return Page::kPageSize - static_cast<int>(OS::CommitPageSize()); in CodePageAreaEndOffset()
767 if (!chunk->InNewSpace() && !static_cast<Page*>(chunk)->WasSwept()) { in IncrementLiveBytesFromMutator()
783 first_unswept_page_(Page::FromAddress(NULL)), in PagedSpace()
789 area_size_ = Page::kPageSize - Page::kObjectStartOffset; in PagedSpace()
791 max_capacity_ = (RoundDown(max_capacity, Page::kPageSize) / Page::kPageSize) in PagedSpace()
829 Page* p = Page::FromAddress(addr); in FindObject()
850 if ((Capacity() + Page::kPageSize) > max_capacity_) return false; in CanExpand()
858 Page* p = heap()->isolate()->memory_allocator()-> in Expand()
881 void PagedSpace::ReleasePage(Page* page) { in ReleasePage()
889 first_unswept_page_ = Page::FromAddress(NULL); in ReleasePage()
901 if (Page::FromAllocationTop(allocation_info_.top) == page) { in ReleasePage()
921 Page* page = it.next(); in ReleaseAllUnusedPages()
962 Page* page = page_iterator.next(); in Verify()
964 if (page == Page::FromAllocationTop(allocation_info_.top)) { in Verify()
1118 int rounded_new_capacity = RoundUp(new_capacity, Page::kPageSize); in Shrink()
1293 ASSERT(maximum_capacity >= Page::kPageSize); in SetUp()
1294 initial_capacity_ = RoundDown(initial_capacity, Page::kPageSize); in SetUp()
1296 maximum_capacity_ = RoundDown(maximum_capacity, Page::kPageSize); in SetUp()
1314 int pages = capacity_ / Page::kPageSize; in Commit()
1316 Address start = end - pages * Page::kPageSize; in Commit()
1326 NewSpacePage::Initialize(heap(), end - i * Page::kPageSize, this); in Commit()
1355 ASSERT((new_capacity & Page::kPageAlignmentMask) == 0); in GrowTo()
1358 int pages_before = capacity_ / Page::kPageSize; in GrowTo()
1359 int pages_after = new_capacity / Page::kPageSize; in GrowTo()
1374 Address page_address = end - i * Page::kPageSize; in GrowTo()
1390 ASSERT((new_capacity & Page::kPageAlignmentMask) == 0); in ShrinkTo()
1407 int pages_after = new_capacity / Page::kPageSize; in ShrinkTo()
1409 NewSpacePage::FromAddress(space_end - pages_after * Page::kPageSize); in ShrinkTo()
1904 Page::FromAddress(node->address())->IsEvacuationCandidate()) { in PickNodeFromList()
1943 Page::FromAddress(cur_node->address())->IsEvacuationCandidate()) { in FindNodeFor()
2040 static intptr_t CountFreeListItemsInList(FreeListNode* n, Page* p) { in CountFreeListItemsInList()
2043 if (Page::FromAddress(n->address()) == p) { in CountFreeListItemsInList()
2053 void FreeList::CountFreeListItems(Page* p, SizeStats* sizes) { in CountFreeListItems()
2067 static intptr_t EvictFreeListItemsInList(FreeListNode** n, Page* p) { in EvictFreeListItemsInList()
2070 if (Page::FromAddress((*n)->address()) == p) { in EvictFreeListItemsInList()
2082 intptr_t FreeList::EvictFreeListItems(Page* p) { in EvictFreeListItems()
2183 Page* p = first_unswept_page_; in PrepareForMarkCompact()
2198 first_unswept_page_ = Page::FromAddress(NULL); in PrepareForMarkCompact()
2242 Page* p = first_unswept_page_; in AdvanceSweeper()
2244 Page* next_page = p->next_page(); in AdvanceSweeper()
2257 first_unswept_page_ = Page::FromAddress(NULL); in AdvanceSweeper()
2273 if (Page::FromAllocationTop(allocation_info_.top)->IsEvacuationCandidate()) { in EvictEvacuationCandidatesFromFreeLists()
2731 Page* page = Page::FromAddress(object->address()); in Verify()
2807 void Page::Print() { in Print()