Lines Matching refs:bytes
116 void RecordAlloc(size_t bytes ATTRIBUTE_UNUSED, ArenaAllocKind kind ATTRIBUTE_UNUSED) {} in RecordAlloc()
132 void RecordAlloc(size_t bytes, ArenaAllocKind kind);
291 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
293 return AllocWithMemoryTool(bytes, kind);
295 bytes = RoundUp(bytes, kAlignment);
296 ArenaAllocatorStats::RecordAlloc(bytes, kind);
297 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) {
298 return AllocFromNewArena(bytes);
302 ptr_ += bytes;
307 void* AllocAlign16(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
309 DCHECK_ALIGNED(bytes, 16);
311 return AllocWithMemoryToolAlign16(bytes, kind);
315 ArenaAllocatorStats::RecordAlloc(bytes, kind);
316 if (UNLIKELY(padding + bytes > static_cast<size_t>(end_ - ptr_))) {
318 return AllocFromNewArena(bytes);
323 ptr_ += bytes;
389 void* AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind);
390 void* AllocWithMemoryToolAlign16(size_t bytes, ArenaAllocKind kind);
391 uint8_t* AllocFromNewArena(size_t bytes);
392 uint8_t* AllocFromNewArenaWithMemoryTool(size_t bytes);