Lines Matching refs:r

76     Region* r = AllocateRegion(kForEvac);  in AllocNonvirtual()  local
77 if (LIKELY(r != nullptr)) { in AllocNonvirtual()
78 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
83 evac_region_ = r; in AllocNonvirtual()
85 current_region_ = r; in AllocNonvirtual()
131 Region* r = &regions_[i]; in GetBytesAllocatedInternal() local
132 if (r->IsFree()) { in GetBytesAllocatedInternal()
137 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal()
140 if (r->IsInFromSpace()) { in GetBytesAllocatedInternal()
141 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal()
145 if (r->IsInUnevacFromSpace()) { in GetBytesAllocatedInternal()
146 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal()
150 if (r->IsInToSpace()) { in GetBytesAllocatedInternal()
151 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal()
166 Region* r = &regions_[i]; in GetObjectsAllocatedInternal() local
167 if (r->IsFree()) { in GetObjectsAllocatedInternal()
172 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal()
175 if (r->IsInFromSpace()) { in GetObjectsAllocatedInternal()
176 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal()
180 if (r->IsInUnevacFromSpace()) { in GetObjectsAllocatedInternal()
181 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal()
185 if (r->IsInToSpace()) { in GetObjectsAllocatedInternal()
186 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal()
207 Region* r = &regions_[i]; in ScanUnevacFromSpace() local
208 if (r->IsInUnevacFromSpace()) { in ScanUnevacFromSpace()
211 visit_block_begin = r->Begin(); in ScanUnevacFromSpace()
213 visit_block_end = r->End(); in ScanUnevacFromSpace()
237 Region* r = &regions_[i]; in WalkInternal() local
238 if (r->IsFree() || (kToSpaceOnly && !r->IsInToSpace())) { in WalkInternal()
241 if (r->IsLarge()) { in WalkInternal()
246 mirror::Object* obj = reinterpret_cast<mirror::Object*>(r->Begin()); in WalkInternal()
249 } else if (r->IsLargeTail()) { in WalkInternal()
252 WalkNonLargeRegion(visitor, r); in WalkInternal()
258 inline void RegionSpace::WalkNonLargeRegion(Visitor&& visitor, const Region* r) { in WalkNonLargeRegion() argument
259 DCHECK(!r->IsLarge() && !r->IsLargeTail()); in WalkNonLargeRegion()
261 uint8_t* pos = r->Begin(); in WalkNonLargeRegion()
262 uint8_t* top = r->Top(); in WalkNonLargeRegion()
278 r->LiveBytes() != static_cast<size_t>(-1) && in WalkNonLargeRegion()
279 r->LiveBytes() != static_cast<size_t>(top - pos); in WalkNonLargeRegion()