Lines Matching refs:idx
286 static size_t IndexToBracketSize(size_t idx) { in IndexToBracketSize() argument
287 DCHECK(idx < kNumOfSizeBrackets); in IndexToBracketSize()
288 return bracketSizes[idx]; in IndexToBracketSize()
293 size_t idx; in BracketSizeToIndex() local
295 idx = kNumOfSizeBrackets - 2; in BracketSizeToIndex()
297 idx = kNumOfSizeBrackets - 1; in BracketSizeToIndex()
301 idx = size / 16 - 1; in BracketSizeToIndex()
303 DCHECK(bracketSizes[idx] == size); in BracketSizeToIndex()
304 return idx; in BracketSizeToIndex()
336 size_t idx = bracket_size / 16 - 1; in SizeToIndexAndBracketSize() local
337 DCHECK_EQ(bracket_size, IndexToBracketSize(idx)); in SizeToIndexAndBracketSize()
338 return idx; in SizeToIndexAndBracketSize()
342 size_t idx = kNumOfSizeBrackets - 2; in SizeToIndexAndBracketSize() local
343 DCHECK_EQ(bracket_size, IndexToBracketSize(idx)); in SizeToIndexAndBracketSize()
344 return idx; in SizeToIndexAndBracketSize()
349 size_t idx = kNumOfSizeBrackets - 1; in SizeToIndexAndBracketSize() local
350 DCHECK_EQ(bracket_size, IndexToBracketSize(idx)); in SizeToIndexAndBracketSize()
351 return idx; in SizeToIndexAndBracketSize()
497 void* AllocFromCurrentRunUnlocked(Thread* self, size_t idx);
504 Run* AllocRun(Thread* self, size_t idx) LOCKS_EXCLUDED(lock_);
508 Run* RefillRun(Thread* self, size_t idx) LOCKS_EXCLUDED(lock_);
517 void RevokeRun(Thread* self, size_t idx, Run* run);
577 bool IsFreePage(size_t idx) const { in IsFreePage() argument
578 DCHECK_LT(idx, capacity_ / kPageSize); in IsFreePage()
579 byte pm_type = page_map_[idx]; in IsFreePage()