Lines Matching refs:ptr_
196 size_t total = ptr_ - begin_; in BytesUsed()
210 ptr_(nullptr), in ArenaAllocator()
218 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated()
229 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()
232 ret = ptr_; in AllocWithMemoryTool()
233 ptr_ += rounded_bytes; in AllocWithMemoryTool()
248 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); in AllocWithMemoryToolAlign16()
251 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16()
255 ptr_ += padding; // Leave padding inaccessible. in AllocWithMemoryToolAlign16()
256 ret = ptr_; in AllocWithMemoryToolAlign16()
257 ptr_ += rounded_bytes; in AllocWithMemoryToolAlign16()
275 if (static_cast<size_t>(end_ - ptr_) > new_arena->Size() - bytes) { in AllocFromNewArena()
289 ptr_ = begin_ + bytes; in AllocFromNewArena()
300 DCHECK(ptr_ - bytes == ret); in AllocFromNewArenaWithMemoryTool()
343 (arena_head_ == nullptr) ? 0 : (end_ - ptr_) - arena_head_->RemainingSpace(); in GetMemStats()