/arkcompiler/runtime_core/libpandabase/mem/ |
D | arena_allocator.h | 73 [[nodiscard]] void *Alloc(size_t size, Alignment align = DEFAULT_ARENA_ALIGNMENT); 78 auto p = reinterpret_cast<void *>(Alloc(sizeof(T))); in New() 92 void *p = Alloc(SIZE_BEFORE_DATA_OFFSET + sizeof(element_type) * size); in New() 131 void *Alloc(size_t size, Alignment align = DEFAULT_ARENA_ALIGNMENT) 166 …void *Alloc([[maybe_unused]] size_t size, [[maybe_unused]] Alignment align = DEFAULT_ARENA_ALIGNME… 241 return static_cast<T *>(Alloc(sizeof(T) * arr_length)); in AllocArray()
|
D | arena_allocator.cpp | 72 void *mem = arenas_->Alloc(size, alignment); in AllocateAndAddNewPool() 84 mem = arenas_->Alloc(size, alignment); in AllocateAndAddNewPool() 91 void *ArenaAllocatorT<use_oom_handler>::Alloc(size_t size, Alignment align) in Alloc() function in panda::ArenaAllocatorT 98 ret = buff_.Alloc(size, align); in Alloc()
|
D | arena.h | 41 void *Alloc(size_t size, Alignment alignment = ARENA_DEFAULT_ALIGNMENT); 161 void *Alloc(size_t size) in Alloc() function
|
D | code_allocator.cpp | 50 void *code_ptr = arenaAllocator_.Alloc(size, PAGE_LOG_ALIGN); in AllocateCode() 63 void *code_ptr = arenaAllocator_.Alloc(size, PAGE_LOG_ALIGN); in AllocateCodeUnprotected()
|
D | arena-inl.h | 46 inline void *Arena::Alloc(size_t size, Alignment alignment) in Alloc() function
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | arena_test.cpp | 58 ASSERT_TRUE(arena->Alloc(alloc_size) != nullptr); in GetOccupiedAndFreeSizeTestImplementation() 71 void *first_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation() 72 void *second_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation() 78 void *third_allocation = arena->Alloc(alloc_size); in ResizeAndResetTestImplementation()
|
D | arena_allocator_test.cpp | 89 arr[i] = static_cast<T *>(aa.Alloc(sizeof(T), align)); in AllocateWithAlignment() 115 arr[i] = static_cast<T *>(aa.Alloc(sizeof(T), static_cast<Alignment>(rand_align))); in AllocateWithDiffAlignment() 178 addr = aa.Alloc(24); 181 addr = aa.Alloc(4); 188 mem = aa.Alloc(DEFAULT_ARENA_SIZE / 2); 192 …ASSERT_NE(tmp = aa.Alloc(DEFAULT_ARENA_SIZE - AlignUp(sizeof(Arena), GetAlignmentInBytes(DEFAULT_A… 196 ASSERT_EQ(tmp = aa.Alloc(DEFAULT_ARENA_SIZE + maxAlignDrift + 1), nullptr); 450 void *ptr = aa.Alloc(size, align); 467 void *ptr = aa.Alloc(SIZE, align);
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | regAllocator.h | 65 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in Emit() 72 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in EmitWithType() 79 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in EmitRange() 129 T *Alloc(const ir::AstNode *node, Args &&... args) in Alloc() function 141 insns.push_back(Alloc<T>(node, std::forward<Args>(args)...)); in Add()
|
D | regAllocator.cpp | 62 return Alloc<Label>(lastInsNode, std::move(id)); in AllocLabel()
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | ustring.h | 272 Alloc(); in UString() 292 Alloc(); in Append() 301 Alloc(); in Append() 310 Alloc(); in Append() 316 void Alloc() in Alloc() function
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | chunk_allocator.h | 116 [[nodiscard]] void *Alloc(size_t size) in Alloc() function
|
/arkcompiler/runtime_core/compiler/tests/ |
D | vixl_exec_module.h | 131 …void *arr_data = object_allocator->Alloc(size * sizeof(T) + runtime_info_->GetArrayDataOffset(Arch… in CreateArray()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | inst.cpp | 65 auto new_stor = reinterpret_cast<uintptr_t>(allocator_->Alloc(size)); in Reallocate()
|
D | inst.h | 2872 … auto data = reinterpret_cast<uintptr_t>(allocator->Alloc(sizeof(InstType), DEFAULT_ALIGNMENT)); in New() 2877 … auto data = reinterpret_cast<uintptr_t>(allocator->Alloc(sizeof(InstType), DEFAULT_ALIGNMENT)); in New() 2884 …auto data = reinterpret_cast<uintptr_t>(allocator->Alloc(OPERANDS_SIZE + sizeof(InstType), DEFAULT… in New() 2894 …auto data = reinterpret_cast<uintptr_t>(allocator->Alloc(OPERANDS_SIZE + sizeof(InstType), ALIGNME… in New()
|