Lines Matching refs:zone
16 for (auto zone : zone_pool_->used_) { in StatsScope() local
17 size_t size = static_cast<size_t>(zone->allocation_size()); in StatsScope()
19 initial_values_.insert(std::make_pair(zone, size)); in StatsScope()
39 for (Zone* zone : zone_pool_->used_) { in GetCurrentAllocatedBytes()
40 total += static_cast<size_t>(zone->allocation_size()); in GetCurrentAllocatedBytes()
42 InitialValues::iterator it = initial_values_.find(zone); in GetCurrentAllocatedBytes()
56 void ZonePool::StatsScope::ZoneReturned(Zone* zone) { in ZoneReturned() argument
61 InitialValues::iterator it = initial_values_.find(zone); in ZoneReturned()
74 for (Zone* zone : unused_) { in ~ZonePool()
75 delete zone; in ~ZonePool()
87 for (Zone* zone : used_) { in GetCurrentAllocatedBytes()
88 total += static_cast<size_t>(zone->allocation_size()); in GetCurrentAllocatedBytes()
100 Zone* zone; in NewEmptyZone() local
103 zone = unused_.back(); in NewEmptyZone()
106 zone = new Zone(); in NewEmptyZone()
108 used_.push_back(zone); in NewEmptyZone()
109 DCHECK_EQ(0u, zone->allocation_size()); in NewEmptyZone()
110 return zone; in NewEmptyZone()
114 void ZonePool::ReturnZone(Zone* zone) { in ReturnZone() argument
120 stat_scope->ZoneReturned(zone); in ReturnZone()
123 Used::iterator it = std::find(used_.begin(), used_.end(), zone); in ReturnZone()
126 total_deleted_bytes_ += static_cast<size_t>(zone->allocation_size()); in ReturnZone()
129 delete zone; in ReturnZone()
131 zone->DeleteAll(); in ReturnZone()
132 DCHECK_EQ(0u, zone->allocation_size()); in ReturnZone()
133 unused_.push_back(zone); in ReturnZone()