Home
last modified time | relevance | path

Searched refs:Alloc (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/runtime_core/libpandabase/mem/
Darena_allocator.h73 [[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()
Darena_allocator.cpp72 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()
Darena.h41 void *Alloc(size_t size, Alignment alignment = ARENA_DEFAULT_ALIGNMENT);
161 void *Alloc(size_t size) in Alloc() function
Dcode_allocator.cpp50 void *code_ptr = arenaAllocator_.Alloc(size, PAGE_LOG_ALIGN); in AllocateCode()
63 void *code_ptr = arenaAllocator_.Alloc(size, PAGE_LOG_ALIGN); in AllocateCodeUnprotected()
Darena-inl.h46 inline void *Arena::Alloc(size_t size, Alignment alignment) in Alloc() function
/arkcompiler/runtime_core/libpandabase/tests/
Darena_test.cpp58 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()
Darena_allocator_test.cpp89 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/
DregAllocator.h65 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()
DregAllocator.cpp62 return Alloc<Label>(lastInsNode, std::move(id)); in AllocLabel()
/arkcompiler/ets_frontend/es2panda/util/
Dustring.h272 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/
Dchunk_allocator.h116 [[nodiscard]] void *Alloc(size_t size) in Alloc() function
/arkcompiler/runtime_core/compiler/tests/
Dvixl_exec_module.h131 …void *arr_data = object_allocator->Alloc(size * sizeof(T) + runtime_info_->GetArrayDataOffset(Arch… in CreateArray()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinst.cpp65 auto new_stor = reinterpret_cast<uintptr_t>(allocator_->Alloc(size)); in Reallocate()
Dinst.h2872 … 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()