Lines Matching defs:allocation
41 // If allocation fails (out of memory) this method will return null.
90 // Placement operator new, returns the last 'size' bytes of allocation for use as this.
91 void* operator new(size_t size, const PageAllocation& allocation)
93 ASSERT(size < allocation.size());
94 return reinterpret_cast<char*>(reinterpret_cast<intptr_t>(allocation.base()) + allocation.size()) - size;
97 BumpPointerPool(const PageAllocation& allocation)
98 : m_current(allocation.base())
99 , m_start(allocation.base())
102 , m_allocation(allocation)
122 PageAllocation allocation = PageAllocation::allocate(poolSize);
123 if (!!allocation)
124 return new(allocation) BumpPointerPool(allocation);
202 // can be used for LIFO (stack like) allocation.
205 // of this method will be null if the initial pool allocation fails, or a
211 // (In practice we will still hold on to the initial pool to allow allocation