Home | History | Annotate | Download | only in src

Lines Matching full:preallocatedstorage

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