Lines Matching refs:ptr_
197 size_t total = ptr_ - begin_; in BytesUsed()
211 ptr_(nullptr), in ArenaAllocator()
219 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated()
230 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()
233 ret = ptr_; in AllocWithMemoryTool()
234 ptr_ += rounded_bytes; in AllocWithMemoryTool()
249 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); in AllocWithMemoryToolAlign16()
252 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16()
256 ptr_ += padding; // Leave padding inaccessible. in AllocWithMemoryToolAlign16()
257 ret = ptr_; in AllocWithMemoryToolAlign16()
258 ptr_ += rounded_bytes; in AllocWithMemoryToolAlign16()
276 if (static_cast<size_t>(end_ - ptr_) > new_arena->Size() - bytes) { in AllocFromNewArena()
290 ptr_ = begin_ + bytes; in AllocFromNewArena()
301 DCHECK(ptr_ - bytes == ret); in AllocFromNewArenaWithMemoryTool()
344 (arena_head_ == nullptr) ? 0 : (end_ - ptr_) - arena_head_->RemainingSpace(); in GetMemStats()