Home | History | Annotate | Download | only in src

Lines Matching full:size

36 void* Malloced::New(size_t size) {
38 void* result = malloc(size);
58 void* Embedded::operator new(size_t size) {
69 void* AllStatic::operator new(size_t size) {
109 void PreallocatedStorage::Init(size_t size) {
113 reinterpret_cast<PreallocatedStorage*>(new char[size]);
116 free_chunk->size_ = size - sizeof(PreallocatedStorage);
121 void* PreallocatedStorage::New(size_t size) {
123 return FreeStoreAllocationPolicy::New(size);
127 size = (size + kPointerSize - 1) & ~(kPointerSize - 1);
132 if (storage->size_ == size) {
142 if (storage->size_ >= size + sizeof(PreallocatedStorage)) {
147 reinterpret_cast<char*>(storage + 1) + size);
148 left_over->size_ = storage->size_ - size - sizeof(PreallocatedStorage);
149 ASSERT(size + left_over->size_ + sizeof(PreallocatedStorage) ==
151 storage->size_ = size;
193 PreallocatedStorage::PreallocatedStorage(size_t size)
194 : size_(size) {