Lines Matching refs:Allocate
44 /// StartNewSlab - Allocate a new slab and move the bump pointers over into
48 // to allocate more. Increase slab size to reduce mallocs and possibly memory
53 MemSlab *NewSlab = Allocator.Allocate(SlabSize);
87 /// Allocate - Allocate space at the specified alignment.
89 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) {
99 // Allocate the aligned space, going forwards from CurPtr.
108 // If Size is really big, allocate a separate slab for it.
111 MemSlab *NewSlab = Allocator.Allocate(PaddedSize);
127 assert(CurPtr <= End && "Unable to allocate memory!");
169 MemSlab *MallocSlabAllocator::Allocate(size_t Size) {
170 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0);