Lines Matching refs:PreallocatedStorage
248 PreallocatedStorage* free_chunk = in PreallocatedStorageInit()
249 reinterpret_cast<PreallocatedStorage*>(new char[size]); in PreallocatedStorageInit()
252 free_chunk->size_ = size - sizeof(PreallocatedStorage); in PreallocatedStorageInit()
266 for (PreallocatedStorage* storage = free_list_.next_; in PreallocatedStorageNew()
276 for (PreallocatedStorage* storage = free_list_.next_; in PreallocatedStorageNew()
279 if (storage->size_ >= size + sizeof(PreallocatedStorage)) { in PreallocatedStorageNew()
282 PreallocatedStorage* left_over = in PreallocatedStorageNew()
283 reinterpret_cast<PreallocatedStorage*>( in PreallocatedStorageNew()
285 left_over->size_ = storage->size_ - size - sizeof(PreallocatedStorage); in PreallocatedStorageNew()
286 ASSERT(size + left_over->size_ + sizeof(PreallocatedStorage) == in PreallocatedStorageNew()
308 PreallocatedStorage* storage = reinterpret_cast<PreallocatedStorage*>(p) - 1; in PreallocatedStorageDelete()