• Home
  • Raw
  • Download

Lines Matching refs:Page

94   ASSERT((OffsetFrom(address) & Page::kPageAlignmentMask) == 0)
103 ASSERT((0 < size) && (size <= Page::kMaxHeapObjectSize))
106 ASSERT((Page::kObjectStartOffset <= offset) \
107 && (offset <= Page::kPageSize))
131 class Page {
140 INLINE(static Page* FromAddress(Address a)) { in INLINE()
141 return reinterpret_cast<Page*>(OffsetFrom(a) & ~kPageAlignmentMask); in INLINE()
148 INLINE(static Page* FromAllocationTop(Address top)) { in INLINE()
149 Page* p = FromAddress(top - kPointerSize); in INLINE()
161 inline Page* next_page();
183 Address ObjectAreaEnd() { return address() + Page::kPageSize; } in ObjectAreaEnd()
533 Page* CommitPages(Address start, size_t size, PagedSpace* owner,
561 Page* AllocatePages(int requested_pages, int* allocated_pages,
571 Page* FreePages(Page* p);
615 return (Available() / Page::kPageSize) * Page::kObjectAreaSize; in MaxAvailable()
619 inline void SetNextPage(Page* prev, Page* next);
622 inline Page* GetNextPage(Page* p);
625 inline bool IsPageInSpace(Page* p, PagedSpace* space);
628 inline PagedSpace* PageOwner(Page* page);
631 Page* FindFirstPageInSameChunk(Page* p);
632 Page* FindLastPageInSameChunk(Page* p);
639 Page** first_page,
640 Page** last_page,
641 Page** last_page_in_use);
650 inline void ProtectChunkFromPage(Page* page);
651 inline void UnprotectChunkFromPage(Page* page);
678 static const int kChunkSize = kPagesPerChunk * Page::kPageSize;
757 inline int GetChunkId(Page* p);
766 Page* InitializePagesInChunk(int chunk_id, int pages_in_chunk,
769 Page* RelinkPagesInChunk(int chunk_id,
772 Page* prev,
773 Page** last_page_in_use);
829 HeapObjectIterator(Page* page, HeapObjectCallback size_func);
843 Page* end_page_; // caches the page of the end address
905 inline Page* next();
909 Page* prev_page_; // Previous page returned.
910 Page* stop_page_; // Page to stop at (last page returned by the iterator).
928 return (Page::FromAllocationTop(top) == Page::FromAllocationTop(limit)) in VerifyPagedAllocation()
1057 bool IsUsed(Page* page);
1065 Address PageAllocationTop(Page* page) { in PageAllocationTop()
1071 virtual Address PageAllocationLimit(Page* page) = 0;
1112 virtual void PutRestOfCurrentPageOnFreeList(Page* current_page) = 0;
1116 void FreePages(Page* prev, Page* last);
1126 allocation_info_.limit = PageAllocationLimit(Page::FromAllocationTop(top)); in SetTop()
1179 Page* AllocationTopPage() { return TopPageOf(allocation_info_); } in AllocationTopPage()
1191 Page* first_page_;
1195 Page* last_page_;
1214 static void SetAllocationInfo(AllocationInfo* alloc_info, Page* p);
1217 static Page* TopPageOf(AllocationInfo alloc_info) { in TopPageOf()
1218 return Page::FromAllocationTop(alloc_info.limit); in TopPageOf()
1222 Page* p = Page::FromAllocationTop(allocation_info_.top); in CountPagesToTop()
1236 bool Expand(Page* last_page);
1246 virtual HeapObject* AllocateInNextPage(Page* current_page,
1262 Page* MCRelocationTopPage() { return TopPageOf(mc_forwarding_info_); } in MCRelocationTopPage()
1764 static const int kMaxBlockSize = Page::kMaxHeapObjectSize;
1907 virtual Address PageAllocationLimit(Page* page) { in PageAllocationLimit()
1936 virtual void PutRestOfCurrentPageOnFreeList(Page* current_page);
1951 HeapObject* AllocateInNextPage(Page* current_page, int size_in_bytes);
1976 page_extra_ = Page::kObjectAreaSize % object_size_in_bytes; in FixedSpace()
1980 virtual Address PageAllocationLimit(Page* page) { in PageAllocationLimit()
2003 virtual void PutRestOfCurrentPageOnFreeList(Page* current_page);
2022 HeapObject* AllocateInNextPage(Page* current_page, int size_in_bytes);
2085 it.next()->SetRegionMarks(Page::kAllRegionsCleanMarks); in TopAfterCompaction()
2088 Page* top_page = it.next(); in TopAfterCompaction()
2089 top_page->SetRegionMarks(Page::kAllRegionsCleanMarks); in TopAfterCompaction()
2101 Page* top_page = Page::FromAddress(new_top); in FinishCompaction()
2112 for (Page* p = first_page_; p != top_page; p = p->next_page()) { in FinishCompaction()
2120 for (Page* p = first_page_; p != top_page; p = p->next_page()) in FinishCompaction()
2137 static const int kMapsPerPage = Page::kObjectAreaSize / Map::kSize;
2204 size_t size() { return size_ & ~Page::kPageFlagMask; } in size()
2219 if (chunk_size <= (Page::kPageSize + Page::kObjectStartOffset)) return 0; in ObjectSizeFor()
2220 return chunk_size - Page::kPageSize - Page::kObjectStartOffset; in ObjectSizeFor()