4 struct bump_allocator {
5 /* offset of 'here' and 'end' is hardcoded in compiler backends */
11 bump_allocator(cell size_, cell start_) :
12 here(0), start(start_), end(start_ + size_), size(size_) {}
14 inline bool contains_p(object *pointer)
16 return ((cell)pointer - start) < size;
19 inline object *allot(cell size)
22 here = h + align(size,data_alignment);
26 cell next_allocated_block_after(cell scan)
28 cell size = ((object *)scan)->size();
29 if(scan + size < here)