Lines Matching refs:rounded_bytes
226 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() local
227 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryTool()
229 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool()
230 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryTool()
233 ptr_ += rounded_bytes; in AllocWithMemoryTool()
245 size_t rounded_bytes = bytes + kMemoryToolRedZoneBytes; in AllocWithMemoryToolAlign16() local
246 DCHECK_ALIGNED(rounded_bytes, 8); // `bytes` is 16-byte aligned, red zone is 8-byte aligned. in AllocWithMemoryToolAlign16()
249 ArenaAllocatorStats::RecordAlloc(rounded_bytes, kind); in AllocWithMemoryToolAlign16()
251 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16()
253 ret = AllocFromNewArenaWithMemoryTool(rounded_bytes); in AllocWithMemoryToolAlign16()
257 ptr_ += rounded_bytes; in AllocWithMemoryToolAlign16()