Lines Matching refs:ref

238   bool IsInFromSpace(mirror::Object* ref) {  in IsInFromSpace()  argument
239 if (HasAddress(ref)) { in IsInFromSpace()
240 Region* r = RefToRegionUnlocked(ref); in IsInFromSpace()
251 bool IsInNewlyAllocatedRegion(mirror::Object* ref) { in IsInNewlyAllocatedRegion() argument
252 if (HasAddress(ref)) { in IsInNewlyAllocatedRegion()
253 Region* r = RefToRegionUnlocked(ref); in IsInNewlyAllocatedRegion()
259 bool IsInUnevacFromSpace(mirror::Object* ref) { in IsInUnevacFromSpace() argument
260 if (HasAddress(ref)) { in IsInUnevacFromSpace()
261 Region* r = RefToRegionUnlocked(ref); in IsInUnevacFromSpace()
267 bool IsLargeObject(mirror::Object* ref) { in IsLargeObject() argument
268 if (HasAddress(ref)) { in IsLargeObject()
269 Region* r = RefToRegionUnlocked(ref); in IsLargeObject()
275 bool IsInToSpace(mirror::Object* ref) { in IsInToSpace() argument
276 if (HasAddress(ref)) { in IsInToSpace()
277 Region* r = RefToRegionUnlocked(ref); in IsInToSpace()
285 RegionType GetRegionType(mirror::Object* ref) { in GetRegionType() argument
286 if (HasAddress(ref)) { in GetRegionType()
287 return GetRegionTypeUnsafe(ref); in GetRegionType()
294 RegionType GetRegionTypeUnsafe(mirror::Object* ref) { in GetRegionTypeUnsafe() argument
295 DCHECK(HasAddress(ref)) << ref; in GetRegionTypeUnsafe()
296 Region* r = RefToRegionUnlocked(ref); in GetRegionTypeUnsafe()
319 void AddLiveBytes(mirror::Object* ref, size_t alloc_size) { in AddLiveBytes() argument
320 Region* reg = RefToRegionUnlocked(ref); in AddLiveBytes()
350 size_t RegionIdxForRefUnchecked(mirror::Object* ref) const NO_THREAD_SAFETY_ANALYSIS { in RegionIdxForRefUnchecked() argument
351 DCHECK(HasAddress(ref)); in RegionIdxForRefUnchecked()
352 uintptr_t offset = reinterpret_cast<uintptr_t>(ref) - reinterpret_cast<uintptr_t>(Begin()); in RegionIdxForRefUnchecked()
357 DCHECK(reg->Contains(ref)); in RegionIdxForRefUnchecked()
361 size_t RegionIdxForRef(mirror::Object* ref) const NO_THREAD_SAFETY_ANALYSIS { in RegionIdxForRef() argument
362 if (HasAddress(ref)) { in RegionIdxForRef()
363 return RegionIdxForRefUnchecked(ref); in RegionIdxForRef()
370 void RecordAlloc(mirror::Object* ref) REQUIRES(!region_lock_);
593 bool Contains(mirror::Object* ref) const { in Contains() argument
594 return begin_ <= reinterpret_cast<uint8_t*>(ref) && reinterpret_cast<uint8_t*>(ref) < end_; in Contains()
643 Region* RefToRegion(mirror::Object* ref) REQUIRES(!region_lock_) { in RefToRegion() argument
645 return RefToRegionLocked(ref); in RefToRegion()
650 Region* RefToRegionUnlocked(mirror::Object* ref) NO_THREAD_SAFETY_ANALYSIS { in RefToRegionUnlocked() argument
658 return RefToRegionLocked(ref); in RefToRegionUnlocked()
661 Region* RefToRegionLocked(mirror::Object* ref) REQUIRES(region_lock_) { in RefToRegionLocked() argument
662 DCHECK(HasAddress(ref)); in RefToRegionLocked()
663 uintptr_t offset = reinterpret_cast<uintptr_t>(ref) - reinterpret_cast<uintptr_t>(Begin()); in RefToRegionLocked()
668 DCHECK(reg->Contains(ref)); in RefToRegionLocked()