Lines Matching refs:bucket
113 static inline size_t bucket_to_size(unsigned int bucket) { in bucket_to_size() argument
114 return kMinBucketAllocationSize << bucket; in bucket_to_size()
166 Chunk(HeapImpl* heap, int bucket);
224 Chunk::Chunk(HeapImpl* heap, int bucket) in Chunk() argument
227 bucket_(bucket), in Chunk()
228 allocation_size_(bucket_to_size(bucket)), in Chunk()
344 int bucket = size_to_bucket(size); in AllocLocked() local
345 if (free_chunks_[bucket].empty()) { in AllocLocked()
346 Chunk* chunk = new Chunk(this, bucket); in AllocLocked()
347 free_chunks_[bucket].insert(chunk->node_); in AllocLocked()
349 return free_chunks_[bucket].next()->data()->Alloc(); in AllocLocked()
396 void HeapImpl::MoveToFreeList(Chunk* chunk, int bucket) { in MoveToFreeList() argument
397 MoveToList(chunk, &free_chunks_[bucket]); in MoveToFreeList()
400 void HeapImpl::MoveToFullList(Chunk* chunk, int bucket) { in MoveToFullList() argument
401 MoveToList(chunk, &full_chunks_[bucket]); in MoveToFullList()