Home | History | Annotate | Download | only in src

Lines Matching defs:Zone

42 // Zone scopes are in one of two modes.  Either they delete the zone
52 // The Zone supports very fast allocation of small chunks of
54 // the Zone supports deallocating all chunks in one fast
55 // operation. The Zone is used to hold temporary data structures like
58 // Note: There is no need to initialize the Zone; the first time an
65 class Zone {
67 // Allocate 'size' bytes of memory in the Zone; expands the Zone by
74 // Deletes all objects and free all memory allocated in the Zone. Keeps one
109 // Report zone excess when allocation exceeds this limit.
114 // the zone.
117 // Each isolate gets its own zone.
118 Zone();
120 // Expand the Zone to hold at least 'size' more bytes and allocate
122 // memory in the Zone. Should only be called if there isn't enough
123 // room in the Zone already.
147 // allocated in the Zone. Use it as a base class; see ast.h.
150 // Allocate a new ZoneObject of 'size' bytes in the Zone.
152 INLINE(void* operator new(size_t size, Zone* zone));
161 // Zone::DeleteAll() to delete all zone objects in one go.
163 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); }
169 // Zone.
172 // Allocate 'size' bytes of memory in the zone.
182 // Zone. ZoneLists cannot be deleted individually; you can delete all
183 // objects in the Zone by calling Zone::DeleteAll().
188 INLINE(void* operator new(size_t size, Zone* zone));
202 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); }
207 // nesting and cleans up generated ASTs in the Zone when exiting the
231 // A zone splay tree. The config type parameter encapsulates the
233 // The tree itself and all its elements are allocated in the Zone.