Lines Matching refs:zone
126 void* operator new(size_t size, Zone* zone) { return zone->New(size); } in new() argument
137 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } in delete() argument
145 explicit ZoneScope(Zone* zone) : zone_(zone) { } in ZoneScope() argument
148 Zone* zone() const { return zone_; } in zone() function
159 explicit ZoneAllocationPolicy(Zone* zone) : zone_(zone) { } in ZoneAllocationPolicy() argument
160 void* New(size_t size) { return zone()->New(size); } in New()
162 Zone* zone() const { return zone_; } in zone() function
178 ZoneList(int capacity, Zone* zone) in ZoneList() argument
179 : List<T, ZoneAllocationPolicy>(capacity, ZoneAllocationPolicy(zone)) { } in ZoneList()
181 void* operator new(size_t size, Zone* zone) { return zone->New(size); } in new() argument
184 ZoneList(const ZoneList<T>& other, Zone* zone) in ZoneList() argument
186 ZoneAllocationPolicy(zone)) { in ZoneList()
187 AddAll(other, zone); in ZoneList()
192 void Add(const T& element, Zone* zone) { in Add() argument
193 List<T, ZoneAllocationPolicy>::Add(element, ZoneAllocationPolicy(zone)); in Add()
195 void AddAll(const List<T, ZoneAllocationPolicy>& other, Zone* zone) { in AddAll() argument
196 List<T, ZoneAllocationPolicy>::AddAll(other, ZoneAllocationPolicy(zone)); in AddAll()
198 void AddAll(const Vector<T>& other, Zone* zone) { in AddAll() argument
199 List<T, ZoneAllocationPolicy>::AddAll(other, ZoneAllocationPolicy(zone)); in AddAll()
201 void InsertAt(int index, const T& element, Zone* zone) { in InsertAt() argument
203 ZoneAllocationPolicy(zone)); in InsertAt()
205 Vector<T> AddBlock(T value, int count, Zone* zone) { in AddBlock() argument
207 ZoneAllocationPolicy(zone)); in AddBlock()
209 void Allocate(int length, Zone* zone) { in Allocate() argument
210 List<T, ZoneAllocationPolicy>::Allocate(length, ZoneAllocationPolicy(zone)); in Allocate()
212 void Initialize(int capacity, Zone* zone) { in Initialize() argument
214 ZoneAllocationPolicy(zone)); in Initialize()
218 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } in delete() argument
228 explicit ZoneSplayTree(Zone* zone) in ZoneSplayTree() argument
229 : SplayTree<Config, ZoneAllocationPolicy>(ZoneAllocationPolicy(zone)) {} in ZoneSplayTree()
237 void* operator new(size_t size, Zone* zone) { return zone->New(size); } in new() argument
240 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); } in delete() argument