Lines Matching refs:bytes
122 void RecordAlloc(size_t bytes ATTRIBUTE_UNUSED, ArenaAllocKind kind ATTRIBUTE_UNUSED) {} in RecordAlloc()
138 void RecordAlloc(size_t bytes, ArenaAllocKind kind);
268 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
270 return AllocWithMemoryTool(bytes, kind);
272 bytes = RoundUp(bytes, kAlignment);
273 ArenaAllocatorStats::RecordAlloc(bytes, kind);
274 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) {
275 return AllocFromNewArena(bytes);
279 ptr_ += bytes;
284 void* AllocAlign16(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
286 DCHECK_ALIGNED(bytes, 16);
288 return AllocWithMemoryToolAlign16(bytes, kind);
292 ArenaAllocatorStats::RecordAlloc(bytes, kind);
293 if (UNLIKELY(padding + bytes > static_cast<size_t>(end_ - ptr_))) {
295 return AllocFromNewArena(bytes);
300 ptr_ += bytes;
366 void* AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind);
367 void* AllocWithMemoryToolAlign16(size_t bytes, ArenaAllocKind kind);
368 uint8_t* AllocFromNewArena(size_t bytes);
369 uint8_t* AllocFromNewArenaWithMemoryTool(size_t bytes);