Lines Matching refs:rounded_bytes
227 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local
228 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryTool()
230 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()
231 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryTool()
234 ptr_ += rounded_bytes; in AllocWithMemoryTool()
246 size_t rounded_bytes = bytes + kMemoryToolRedZoneBytes; in AllocWithMemoryToolAlign16() local
247 DCHECK_ALIGNED(rounded_bytes, 8); // `bytes` is 16-byte aligned, red zone is 8-byte aligned. in AllocWithMemoryToolAlign16()
250 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryToolAlign16()
252 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16()
254 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryToolAlign16()
258 ptr_ += rounded_bytes; in AllocWithMemoryToolAlign16()