Lines Matching refs:ret
233 Arena* ret = nullptr; in AllocArena() local
237 ret = free_arenas_; in AllocArena()
241 if (ret == nullptr) { in AllocArena()
242 ret = use_malloc_ ? static_cast<Arena*>(new MallocArena(size)) : in AllocArena()
245 ret->Reset(); in AllocArena()
246 return ret; in AllocArena()
324 uint8_t* ret; in AllocWithMemoryTool() local
326 ret = AllocFromNewArena(rounded_bytes); in AllocWithMemoryTool()
327 uint8_t* noaccess_begin = ret + bytes; in AllocWithMemoryTool()
329 if (ret == arena_head_->Begin()) { in AllocWithMemoryTool()
330 DCHECK(ptr_ - rounded_bytes == ret); in AllocWithMemoryTool()
335 DCHECK(ret == arena_head_->next_->Begin()); in AllocWithMemoryTool()
341 ret = ptr_; in AllocWithMemoryTool()
344 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryTool()
346 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryTool()
347 return ret; in AllocWithMemoryTool()