Home
last modified time | relevance | path

Searched refs:Allocate (Results 1 - 25 of 57) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/mem/
H A Dtlab_allocator-inl.h47 uintptr_t TlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() function in panda::ecmascript::TlabAllocator
74 uintptr_t result = youngAllocator_.Allocate(size); in AllocateInYoungSpace()
82 return youngAllocator_.Allocate(size); in AllocateInYoungSpace()
89 uintptr_t result = localSpace_->Allocate(size, true); in AllocateInCompressSpace()
98 // 1. Allocate from freelist in compress allocator in AllocateInOldSpace()
99 uintptr_t result = localSpace_->Allocate(size, false); in AllocateInOldSpace()
105 result = localSpace_->Allocate(size, true); in AllocateInOldSpace()
155 uintptr_t SharedTlabAllocator::Allocate(size_t size, MemSpaceType space) in Allocate() function in panda::ecmascript::SharedTlabAllocator
173 uintptr_t result = sLocalSpace_->Allocate(size, true); in AllocateInCompressSpace()
H A Dsparse_space.cpp53 uintptr_t SparseSpace::Allocate(size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SparseSpace
57 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
61 auto object = allocator_->Allocate(size); in Allocate()
71 object = allocator_->Allocate(size); in Allocate()
76 object = allocator_->Allocate(size); in Allocate()
82 object = Allocate(size, false); in Allocate()
106 auto object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
113 return allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
582 return Allocate(size); in CheckAndAllocate()
605 uintptr_t LocalSpace::Allocate(size_ function in panda::ecmascript::LocalSpace
671 uintptr_t MachineCodeSpace::Allocate(size_t size, bool allowGC) Allocate() function in panda::ecmascript::MachineCodeSpace
676 uintptr_t MachineCodeSpace::Allocate(size_t size, MachineCodeDesc *desc, bool allowGC) Allocate() function in panda::ecmascript::MachineCodeSpace
[all...]
H A Dchunk.h41 [[nodiscard]] void *Allocate(size_t size) in Allocate() function in panda::ecmascript::Chunk
61 return static_cast<T *>(Allocate(size * sizeof(T))); in NewArray()
67 auto p = reinterpret_cast<void *>(Allocate(sizeof(T))); in New()
107 return chunk->Allocate(size); in operator new()
H A Dcaddress_allocator.h76 return static_cast<T *>(Allocate(n * sizeof(T))); in allocate()
102 [[nodiscard]] void *Allocate(size_t size) in Allocate() function in panda::ecmascript::CAddressAllocator
120 auto p = reinterpret_cast<void *>(Allocate(sizeof(S))); in New()
138 return static_cast<T *>(Allocate(size * sizeof(T))); in AllocArray()
H A Dallocator-inl.h61 uintptr_t BumpPointerAllocator::Allocate(size_t size) in Allocate() function in panda::ecmascript::BumpPointerAllocator
105 uintptr_t FreeListAllocator<T>::Allocate(size_t size) in Allocate() function in panda::ecmascript::FreeListAllocator
107 auto ret = bpAllocator_.Allocate(size); in Allocate()
112 T *object = freeList_->Allocate(size); in Allocate()
114 ret = Allocate(object, size); in Allocate()
121 uintptr_t FreeListAllocator<T>::Allocate(T *object, size_t size) in Allocate() function in panda::ecmascript::FreeListAllocator
138 auto ret = bpAllocator_.Allocate(size); in Allocate()
H A Dlinear_space.cpp31 uintptr_t LinearSpace::Allocate(size_t size, bool isPromoted) in Allocate() function in panda::ecmascript::LinearSpace
35 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
39 auto object = allocator_.Allocate(size); in Allocate()
55 object = allocator_.Allocate(size); in Allocate()
70 object = allocator_.Allocate(size); in Allocate()
217 return Allocate(size); in AllocateSync()
220 uintptr_t EdenSpace::Allocate(size_t size) in Allocate() function in panda::ecmascript::EdenSpace
225 auto object = allocator_.Allocate(size); in Allocate()
239 object = allocator_.Allocate(size); in Allocate()
378 return Allocate(siz in AllocateSync()
[all...]
H A Dthread_local_allocation_buffer.h37 uintptr_t Allocate(size_t size) in Allocate() function in panda::ecmascript::ThreadLocalAllocationBuffer
39 return bpAllocator_.Allocate(size); in Allocate()
H A Dtlab_allocator.h46 inline uintptr_t Allocate(size_t size, MemSpaceType space);
79 inline uintptr_t Allocate(size_t size, MemSpaceType space);
H A Dallocator.h50 inline uintptr_t Allocate(size_t size);
98 inline uintptr_t Allocate(size_t size);
136 inline uintptr_t Allocate(T *object, size_t size);
H A Dheap-inl.h48 (object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); \
57 (object) = reinterpret_cast<TaggedObject *>((space)->Allocate(thread, size)); \
66 (object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size, desc)); \
75 (object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); \
236 auto object = reinterpret_cast<TaggedObject *>(edenSpace_->Allocate(size)); in AllocateInGeneralNewSpace()
241 return reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateInGeneralNewSpace()
300 auto object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in TryAllocateYoungGeneration()
323 object = reinterpret_cast<TaggedObject *>(oldSpace_->Allocate(size)); in AllocateOldOrHugeObject()
356 object = reinterpret_cast<TaggedObject *>(readOnlySpace_->Allocate(size)); in AllocateReadOnlyOrHugeObject()
399 auto object = reinterpret_cast<TaggedObject *>(nonMovableSpace_->Allocate(siz in AllocateClassClass()
[all...]
H A Dsparse_space.h67 uintptr_t Allocate(size_t size, bool allowGC = true);
260 uintptr_t Allocate(size_t size, bool isExpand = true);
279 uintptr_t Allocate(size_t size, bool allowGC = true);
280 uintptr_t Allocate(size_t size, MachineCodeDesc *desc, bool allowGC = true);
H A Dspace.cpp169 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread, void *pDesc, in Allocate() function in panda::ecmascript::HugeMachineCodeSpace
177 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
192 LOG_GC(ERROR) << "HugeMachineCodeSpace::Allocate: region is nullptr"; in Allocate()
204 uintptr_t HugeMachineCodeSpace::Allocate(size_t objectSize, JSThread *thread) in Allocate() function in panda::ecmascript::HugeMachineCodeSpace
207 return HugeObjectSpace::Allocate(objectSize, thread); in Allocate()
210 uintptr_t HugeObjectSpace::Allocate(size_t objectSize, JSThread *thread, AllocateEventType allocType) in Allocate() function in panda::ecmascript::HugeObjectSpace
214 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
H A Dspace.h300 uintptr_t Allocate(size_t objectSize, JSThread *thread, AllocateEventType allocType = AllocateEventType::NORMAL);
320 uintptr_t Allocate(size_t objectSize, JSThread *thread, void *desc,
322 uintptr_t Allocate(size_t objectSize, JSThread *thread);
H A Dwork_space_chunk.h44 void *Allocate(size_t size) in Allocate() function in panda::ecmascript::WorkSpaceChunk
H A Dlinear_space.h27 uintptr_t Allocate(size_t size, bool isPromoted = false);
89 uintptr_t Allocate(size_t size);
H A Dfree_object_list.cpp46 T *FreeObjectList<T>::Allocate(size_t size) in Allocate() function in panda::ecmascript::FreeObjectList
88 template FreeObject *FreeObjectList<FreeObject>::Allocate(size_t size);
89 template MemDesc *FreeObjectList<MemDesc>::Allocate(size_t size);
H A Dparallel_marker-inl.h281 forwardAddress = workManager_->GetTlabAllocator(threadId)->Allocate(size, COMPRESS_SPACE); in AllocateDstSpace()
288 forwardAddress = workManager_->GetTlabAllocator(threadId)->Allocate(size, SEMI_SPACE); in AllocateDstSpace()
290 forwardAddress = workManager_->GetTlabAllocator(threadId)->Allocate(size, COMPRESS_SPACE); in AllocateDstSpace()
478 uintptr_t forwardAddress = heap_->GetReadOnlySpace()->Allocate(size); in AllocateReadOnlySpace()
490 uintptr_t forwardAddress = heap_->GetAppSpawnSpace()->Allocate(size); in AllocateAppSpawnSpace()
H A Djit_fort.cpp92 uintptr_t JitFort::Allocate(MachineCodeDesc *desc) in Allocate() function in panda::ecmascript::JitFort
97 auto ret = allocator_->Allocate(size); in Allocate()
100 LOG_JIT(DEBUG) << "JitFort: Allocate - AddRegion"; in Allocate()
101 ret = allocator_->Allocate(size); in Allocate()
105 LOG_JIT(DEBUG) << "JitFort:: Allocate return nullptr for size " << size; in Allocate()
113 LOG_JIT(DEBUG) << "JitFort:: Allocate " << (void *)ret << " - " << (void *)(ret+size-1) << in Allocate()
139 // Called by Jit Compile thread during JitFort Allocate to mark Fort buf
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
H A Dshared_space.cpp58 uintptr_t SharedSparseSpace::Allocate(JSThread *thread, size_t size, bool allowGC) in Allocate() function in panda::ecmascript::SharedSparseSpace
62 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in Allocate()
89 object = Allocate(thread, size, false); in Allocate()
112 LOG_ECMA(FATAL) << "Allocate must be in jsthread running state"; in AllocateNoGCAndExpand()
127 uintptr_t object = allocator_->Allocate(size); in TryAllocate()
137 auto object = allocator_->Allocate(size); in AllocateWithExpand()
139 object = allocator_->Allocate(size); in AllocateWithExpand()
185 object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
190 object = allocator_->Allocate(size); in AllocateAfterSweepingCompleted()
198 object = allocator_->Allocate(siz in AllocateAfterSweepingCompleted()
487 uintptr_t SharedLocalSpace::Allocate(size_t size, bool isExpand) Allocate() function in panda::ecmascript::SharedLocalSpace
528 uintptr_t SharedReadOnlySpace::Allocate(JSThread *thread, size_t size) Allocate() function in panda::ecmascript::SharedReadOnlySpace
589 uintptr_t SharedHugeObjectSpace::Allocate(JSThread *thread, size_t objectSize, AllocateEventType allocType) Allocate() function in panda::ecmascript::SharedHugeObjectSpace
[all...]
H A Dshared_space.h45 uintptr_t Allocate(JSThread *thread, size_t size, bool allowGC = true);
176 uintptr_t Allocate(size_t size, bool isExpand = true);
206 uintptr_t Allocate(JSThread *thread, size_t size);
226 uintptr_t Allocate(JSThread *thread, size_t objectSize, AllocateEventType allocType = AllocateEventType::NORMAL);
/arkcompiler/runtime_core/static_core/runtime/include/mem/
H A Dallocator.h102 return Allocate(size, CalculateAllocatorAlignment(alignof(uintptr_t)), nullptr); in Alloc()
107 return Allocate(size, align, nullptr); in Alloc()
120 [[nodiscard]] virtual void *Allocate(size_t size, Alignment align, [[maybe_unused]] ark::ManagedThread *thread) = 0;
128 return static_cast<T *>(this->Allocate(sizeof(T) * size, CalculateAllocatorAlignment(alignof(T)), nullptr)); in AllocArray()
338 void *Allocate([[maybe_unused]] size_t size, [[maybe_unused]] Alignment align,
342 << "Don't use common Allocate method for object allocation without object initialization argument";
346 [[nodiscard]] virtual void *Allocate(size_t size, Alignment align, ark::ManagedThread *thread,
494 [[nodiscard]] void *Allocate(size_t size, Alignment align, [[maybe_unused]] ark::ManagedThread *thread) final
642 [[nodiscard]] void *Allocate(size_t size, Alignment align, [[maybe_unused]] ark::ManagedThread *thread,
818 [[nodiscard]] void *Allocate(size_
[all...]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_alloc_graph_coloring.h59 bool Allocate() override;
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djit_fort_test.cpp68 jitFort->Allocate(&desc); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_alloc_graph_coloring.h50 bool Allocate() override;
/arkcompiler/ets_runtime/ecmascript/serializer/
H A Dbase_deserializer.cpp412 res = heap_->GetHugeObjectSpace()->Allocate(objSize, thread_, AllocateEventType::DESERIALIZE); in RelocateObjectAddr()
438 res = sheap_->GetHugeObjectSpace()->Allocate(thread_, objSize, AllocateEventType::DESERIALIZE); in RelocateObjectAddr()
636 uintptr_t object = space->Allocate(oldSpaceSize, false); in AllocateToOldSpace()
653 uintptr_t object = space->Allocate(nonMovableSpaceSize, false); in AllocateToNonMovableSpace()
670 uintptr_t object = space->Allocate(machineCodeSpaceSize, false); in AllocateToMachineCodeSpace()

Completed in 17 milliseconds

123