Lines Matching refs:space
44 // Temporary filters old space sweeping lists. Requires the concurrent
59 // Iteration here is from most free space to least free space.
84 void AddPage(AllocationSpace space, Page* page, AddPageMode mode);
105 void DrainSweepingWorklistForSpace(AllocationSpace space);
111 Page* GetSweptPageSafe(PagedSpace* space);
138 Page* page, Space* space,
163 ForAllSweepingSpaces([this, &is_done](AllocationSpace space) {
164 if (!sweeping_list_[GetSweepSpaceIndex(space)].empty()) is_done = false;
171 // Concurrently sweeps many page from the given space. Returns true if there
172 // are no more pages to sweep in the given space.
175 // Sweeps incrementally one page from the given space. Returns true if
176 // there are no more pages to sweep in the given space.
179 Page* GetSweepingPageSafe(AllocationSpace space);
180 bool TryRemoveSweepingPageSafe(AllocationSpace space, Page* page);
182 void PrepareToBeSweptPage(AllocationSpace space, Page* page);
186 bool IsValidIterabilitySpace(AllocationSpace space) {
187 return space == NEW_SPACE || space == RO_SPACE;
190 static bool IsValidSweepingSpace(AllocationSpace space) {
191 return space >= FIRST_GROWABLE_PAGED_SPACE &&
192 space <= LAST_GROWABLE_PAGED_SPACE;
195 static int GetSweepSpaceIndex(AllocationSpace space) {
196 DCHECK(IsValidSweepingSpace(space));
197 return space - FIRST_GROWABLE_PAGED_SPACE;