Lines Matching refs:bucket
115 static inline size_t bucket_to_size(unsigned int bucket) { in bucket_to_size() argument
116 return kMinBucketAllocationSize << bucket; in bucket_to_size()
168 Chunk(HeapImpl* heap, int bucket);
230 Chunk::Chunk(HeapImpl* heap, int bucket) in Chunk() argument
233 bucket_(bucket), in Chunk()
234 allocation_size_(bucket_to_size(bucket)), in Chunk()
364 int bucket = size_to_bucket(size); in AllocLocked() local
365 if (free_chunks_[bucket].empty()) { in AllocLocked()
366 Chunk* chunk = new Chunk(this, bucket); in AllocLocked()
367 free_chunks_[bucket].insert(chunk->node_); in AllocLocked()
369 return free_chunks_[bucket].next()->data()->Alloc(); in AllocLocked()
416 void HeapImpl::MoveToFreeList(Chunk* chunk, int bucket) { in MoveToFreeList() argument
417 MoveToList(chunk, &free_chunks_[bucket]); in MoveToFreeList()
420 void HeapImpl::MoveToFullList(Chunk* chunk, int bucket) { in MoveToFullList() argument
421 MoveToList(chunk, &full_chunks_[bucket]); in MoveToFullList()