Lines Matching refs:ptr_
385 size_t total = ptr_ - begin_; in BytesUsed()
399 ptr_(nullptr), in ArenaAllocator()
407 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated()
418 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()
421 ret = ptr_; in AllocWithMemoryTool()
422 ptr_ += rounded_bytes; in AllocWithMemoryTool()
437 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); in AllocWithMemoryToolAlign16()
440 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16()
444 ptr_ += padding; // Leave padding inaccessible. in AllocWithMemoryToolAlign16()
445 ret = ptr_; in AllocWithMemoryToolAlign16()
446 ptr_ += rounded_bytes; in AllocWithMemoryToolAlign16()
464 if (static_cast<size_t>(end_ - ptr_) > new_arena->Size() - bytes) { in AllocFromNewArena()
478 ptr_ = begin_ + bytes; in AllocFromNewArena()
489 DCHECK(ptr_ - bytes == ret); in AllocFromNewArenaWithMemoryTool()
532 (arena_head_ == nullptr) ? 0 : (end_ - ptr_) - arena_head_->RemainingSpace(); in GetMemStats()