Lines Matching refs:idx
371 const uint8_t idx = size_bracket_idx_; in FirstSlot() local
372 return reinterpret_cast<Slot*>(reinterpret_cast<uintptr_t>(this) + headerSizes[idx]); in FirstSlot()
375 const uint8_t idx = size_bracket_idx_; in LastSlot() local
376 const size_t bracket_size = bracketSizes[idx]; in LastSlot()
402 const uint8_t idx = size_bracket_idx_; in InitFreeList() local
403 const size_t bracket_size = bracketSizes[idx]; in InitFreeList()
468 const uint8_t idx = size_bracket_idx_; in ToSlot() local
469 const size_t bracket_size = bracketSizes[idx]; in ToSlot()
474 DCHECK_LT(slot_idx, numOfSlots[idx]); in ToSlot()
478 const uint8_t idx = size_bracket_idx_; in SlotIndex() local
479 const size_t bracket_size = bracketSizes[idx]; in SlotIndex()
484 DCHECK_LT(slot_idx, numOfSlots[idx]); in SlotIndex()
511 static size_t IndexToBracketSize(size_t idx) { in IndexToBracketSize() argument
512 DCHECK_LT(idx, kNumOfSizeBrackets); in IndexToBracketSize()
513 return bracketSizes[idx]; in IndexToBracketSize()
521 size_t idx; in BracketSizeToIndex() local
523 idx = kNumOfSizeBrackets - 2; in BracketSizeToIndex()
525 idx = kNumOfSizeBrackets - 1; in BracketSizeToIndex()
528 idx = size / kThreadLocalBracketQuantumSize - 1; in BracketSizeToIndex()
532 idx = ((size - kMaxThreadLocalBracketSize) / kBracketQuantumSize - 1) in BracketSizeToIndex()
535 DCHECK(bracketSizes[idx] == size); in BracketSizeToIndex()
536 return idx; in BracketSizeToIndex()
577 size_t idx; in SizeToIndexAndBracketSize() local
581 idx = bracket_size / kThreadLocalBracketQuantumSize - 1; in SizeToIndexAndBracketSize()
584 idx = ((bracket_size - kMaxThreadLocalBracketSize) / kBracketQuantumSize - 1) in SizeToIndexAndBracketSize()
588 idx = kNumOfSizeBrackets - 2; in SizeToIndexAndBracketSize()
592 idx = kNumOfSizeBrackets - 1; in SizeToIndexAndBracketSize()
594 DCHECK_EQ(idx, SizeToIndex(size)) << idx; in SizeToIndexAndBracketSize()
595 DCHECK_EQ(bracket_size, IndexToBracketSize(idx)) << idx; in SizeToIndexAndBracketSize()
596 DCHECK_EQ(bracket_size, bracketSizes[idx]) << idx; in SizeToIndexAndBracketSize()
597 DCHECK_LE(size, bracket_size) << idx; in SizeToIndexAndBracketSize()
601 (size <= kMaxRegularBracketSize && bracket_size - size < kBracketQuantumSize)) << idx; in SizeToIndexAndBracketSize()
603 return idx; in SizeToIndexAndBracketSize()
793 void* AllocFromCurrentRunUnlocked(Thread* self, size_t idx) REQUIRES(!lock_);
800 Run* AllocRun(Thread* self, size_t idx) REQUIRES(!lock_);
804 Run* RefillRun(Thread* self, size_t idx) REQUIRES(!lock_);
815 void RevokeRun(Thread* self, size_t idx, Run* run) REQUIRES(!lock_);
912 bool IsFreePage(size_t idx) const { in IsFreePage() argument
913 DCHECK_LT(idx, capacity_ / kPageSize); in IsFreePage()
914 uint8_t pm_type = page_map_[idx]; in IsFreePage()