Home | History | Annotate | Download | only in Support

Lines Matching defs:Allocate

45 /// StartNewSlab - Allocate a new slab and move the bump pointers over into
49 // to allocate more. Increase slab size to reduce mallocs and possibly memory
54 MemSlab *NewSlab = Allocator.Allocate(SlabSize);
89 /// Allocate - Allocate space at the specified alignment.
91 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) {
101 // Allocate the aligned space, going forwards from CurPtr.
114 // If Size is really big, allocate a separate slab for it.
117 MemSlab *NewSlab = Allocator.Allocate(PaddedSize);
134 assert(CurPtr <= End && "Unable to allocate memory!");
177 MemSlab *MallocSlabAllocator::Allocate(size_t Size) {
178 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0);