Lines Matching refs:ZoneAllocationPolicy
155 // The ZoneAllocationPolicy is used to specialize generic data
157 class ZoneAllocationPolicy final {
159 explicit ZoneAllocationPolicy(Zone* zone) : zone_(zone) { }
174 class ZoneList final : public List<T, ZoneAllocationPolicy> {
179 : List<T, ZoneAllocationPolicy>(capacity, ZoneAllocationPolicy(zone)) { }
185 : List<T, ZoneAllocationPolicy>(other.length(),
186 ZoneAllocationPolicy(zone)) {
191 // instead of a (less convenient) ZoneAllocationPolicy.
193 List<T, ZoneAllocationPolicy>::Add(element, ZoneAllocationPolicy(zone));
195 void AddAll(const List<T, ZoneAllocationPolicy>& other, Zone* zone) {
196 List<T, ZoneAllocationPolicy>::AddAll(other, ZoneAllocationPolicy(zone));
199 List<T, ZoneAllocationPolicy>::AddAll(other, ZoneAllocationPolicy(zone));
202 List<T, ZoneAllocationPolicy>::InsertAt(index, element,
203 ZoneAllocationPolicy(zone));
206 return List<T, ZoneAllocationPolicy>::AddBlock(value, count,
207 ZoneAllocationPolicy(zone));
210 List<T, ZoneAllocationPolicy>::Allocate(length, ZoneAllocationPolicy(zone));
213 List<T, ZoneAllocationPolicy>::Initialize(capacity,
214 ZoneAllocationPolicy(zone));
226 class ZoneSplayTree final : public SplayTree<Config, ZoneAllocationPolicy> {
229 : SplayTree<Config, ZoneAllocationPolicy>(ZoneAllocationPolicy(zone)) {}
234 SplayTree<Config, ZoneAllocationPolicy>::ResetRoot();
244 typedef TemplateHashMapImpl<ZoneAllocationPolicy> ZoneHashMap;