Home
last modified time | relevance | path

Searched refs:AlignUp (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/mem/
Dtlab_allocator-inl.h68 ASSERT(AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)) == size); in AllocateInYoungSpace()
86 ASSERT(AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)) == size); in AllocateInCompressSpace()
87 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateInCompressSpace()
95 ASSERT(AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)) == size); in AllocateInOldSpace()
96 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateInOldSpace()
Dheap-inl.h128 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateYoungOrHugeObject()
171 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in TryAllocateYoungGeneration()
190 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateOldOrHugeObject()
209 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateReadOnlyOrHugeObject()
228 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateNonMovableOrHugeObject()
241 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateClassClass()
287 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateMachineCodeObject()
297 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in AllocateSnapshotSpace()
Dheap_region_allocator.cpp52 …LOG_ECMA_IF(AlignUp(mem, PANDA_POOL_ALIGNMENT_IN_BYTES) != mem, FATAL) << "region not align by 256… in AllocateAlignedRegion()
55 …uintptr_t begin = AlignUp(mem + sizeof(Region), static_cast<size_t>(MemAlignment::MEM_ALIGN_REGION… in AllocateAlignedRegion()
Dgc_bitset.h49 size_t bitSize = AlignUp(heapSize, TAGGED_TYPE_SIZE) >> TAGGED_TYPE_SIZE_LOG; in SizeOfGCBitset()
50 return AlignUp(AlignUp(bitSize, BIT_PER_BYTE) >> BIT_PER_BYTE_LOG2, BYTE_PER_WORD); in SizeOfGCBitset()
Dchunk.cpp65 uintptr_t result = AlignUp(area->GetBegin(), MEM_ALIGN); in Expand()
Dchunk.h47 size = AlignUp(size, MEM_ALIGN); in Allocate()
Dmem.h104 inline T AlignUp(T x, size_t alignment) in AlignUp() function
Dspace.cpp90 …size_t alignedSize = AlignUp(objectSize + sizeof(Region) + HUGE_OBJECT_BITSET_SIZE, PANDA_POOL_ALI… in Allocate()
/arkcompiler/runtime_core/libpandabase/mem/
Darena-inl.h31 startPos_(ToVoidPtr(AlignUp(ToUintPtr(buff), GetAlignmentInBytes(start_alignment)))), in Arena()
35 … ASSERT(ToUintPtr(buff) == AlignUp(ToUintPtr(buff), GetAlignmentInBytes(ARENA_DEFAULT_ALIGNMENT))); in Arena()
61 ASSERT(AlignUp(ToUintPtr(curPos_), GetAlignmentInBytes(alignment)) == ToUintPtr(curPos_)); in AlignedAlloc()
62 ASSERT(AlignUp(size, GetAlignmentInBytes(alignment)) == size); in AlignedAlloc()
144 ASSERT(ToUintPtr(extra_buff) == AlignUp(ToUintPtr(extra_buff), DEFAULT_ALIGNMENT_IN_BYTES)); in ExpandArena()
Dmem.h98 constexpr std::enable_if_t<std::is_unsigned_v<T>, T> AlignUp(T value, size_t alignment) in AlignUp() function
136 return AlignUp(size, DEFAULT_ALIGNMENT_IN_BYTES); in GetAlignedObjectSize()
203 constexpr uintptr_t PANDA_32BITS_HEAP_START_ADDRESS = AlignUp(1U, PANDA_POOL_ALIGNMENT_IN_BYTES);
Dmmap_mem_pool-inl.h139 ASSERT(AlignUp(ToUintPtr(mem), PANDA_POOL_ALIGNMENT_IN_BYTES) == ToUintPtr(mem)); in MmapMemPool()
207 ASSERT(size == AlignUp(size, panda::os::mem::GetPageSize())); in FreeArenaImpl()
270 ASSERT(size == AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES)); in AllocRawMemImpl()
315 ASSERT(size == AlignUp(size, panda::os::mem::GetPageSize())); in AllocPoolUnsafe()
316 ASSERT(size == AlignUp(size, PANDA_POOL_ALIGNMENT_IN_BYTES)); in AllocPoolUnsafe()
361 …ASSERT(AlignUp(ToUintPtr(pool.GetMem()), PANDA_POOL_ALIGNMENT_IN_BYTES) == ToUintPtr(pool.GetMem()… in AllocPoolUnsafe()
367 ASSERT(size == AlignUp(size, panda::os::mem::GetPageSize())); in FreePoolUnsafe()
Darena_allocator.cpp76 …add_new_pool = AddArenaFromPool(std::max(AlignUp(size, alignment) + sizeof(Arena), DEFAULT_ARENA_S… in AllocateAndAddNewPool()
157 pool_size = AlignUp(pool_size, PANDA_POOL_ALIGNMENT_IN_BYTES); in AddArenaFromPool()
/arkcompiler/runtime_core/libpandabase/tests/
Darena_test.cpp89 …static constexpr size_t ALLOC_SIZE = AlignUp(ARENA_SIZE / 2, GetAlignmentInBytes(ARENA_DEFAULT_ALI… in TEST_F()
91 …static constexpr size_t ALIGNED_ALLOC_SIZE = AlignUp(ALLOC_SIZE, GetAlignmentInBytes(ARENA_ALIGNME… in TEST_F()
99 …static constexpr size_t ALLOC_SIZE = AlignUp(ARENA_SIZE / 3, GetAlignmentInBytes(ARENA_DEFAULT_ALI… in TEST_F()
101 …static constexpr size_t ALIGNED_ALLOC_SIZE = AlignUp(ALLOC_SIZE, GetAlignmentInBytes(ARENA_ALIGNME… in TEST_F()
Dmmap_fixed_test.cpp42 cur_addr = AlignUp(cur_addr, page_size); in TEST_F()
45 end_addr = AlignUp(end_addr, sizeof(uint64_t)); in TEST_F()
Dpool_map_test.cpp90 return AlignUp(rand() % PANDA_MAX_HEAP_SIZE, DEFAULT_ALIGNMENT_IN_BYTES); in RandHeapAddr()
174 size_t pool_size = AlignUp(rand() % MAX_POOL_SIZE, PANDA_POOL_ALIGNMENT_IN_BYTES);
/arkcompiler/ets_runtime/ecmascript/platform/unix/
Dmap.cpp29 ASSERT(size == AlignUp(size, PageSize())); in PageMap()
30 ASSERT(alignment == AlignUp(alignment, PageSize())); in PageMap()
37 auto alignResult = AlignUp(reinterpret_cast<uintptr_t>(result), alignment); in PageMap()
/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dmap.cpp41 ASSERT(size == AlignUp(size, PageSize())); in PageMap()
42 ASSERT(alignment == AlignUp(alignment, PageSize())); in PageMap()
54 auto alignResult = AlignUp(reinterpret_cast<uintptr_t>(result), alignment); in PageMap()
/arkcompiler/ets_runtime/ecmascript/
Djs_hclass-inl.h195 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in SizeFromJSHClass()
199 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in SizeFromJSHClass()
203 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in SizeFromJSHClass()
207 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in SizeFromJSHClass()
211 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in SizeFromJSHClass()
215 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)); in SizeFromJSHClass()
222 ASSERT(AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_OBJECT)) == size); in SizeFromJSHClass()
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/
Delf_builder.cpp308 …curSecOffset = AlignUp(curSecOffset, PageSize()); // not pagesize align will cause performance deg… in ComputeEndAddrOfShdr()
329 curSecOffset = AlignUp(curSecOffset, AOTFileInfo::PAGE_ALIGN); in MergeTextSections()
340 curSecOffset = AlignUp(curSecOffset, AOTFileInfo::TEXT_SEC_ALIGN); in MergeTextSections()
347 curSecOffset = AlignUp(curSecOffset, AOTFileInfo::DATA_SEC_ALIGN); in MergeTextSections()
431 curSecOffset = AlignUp(curSecOffset, curShdr.sh_addralign); in PackELFSections()
438 curSecOffset = AlignUp(curSecOffset, AOTFileInfo::PAGE_ALIGN); in PackELFSections()
487 curSecOffset = AlignUp(curSecOffset, PageSize()); in PackELFSections()
580 offset = AlignUp(offset, PageSize()); in PackELFSegment()
588 phdrs[phdrIndex].p_memsz = AlignUp(phdrs[phdrIndex].p_memsz, PageSize()); in PackELFSegment()
Dexecuted_memory_allocator.h31 MemMap buf = MachineCodePageMap(AlignUp(size, PageSize()), PAGE_PROT_EXEC_READWRITE); in AllocateBuf()
Delf_reader.cpp259 secOffset = AlignUp(secOffset, AOTFileInfo::PAGE_ALIGN); in SeparateTextSections()
265 secOffset = AlignUp(secOffset, AOTFileInfo::TEXT_SEC_ALIGN); in SeparateTextSections()
271 secOffset = AlignUp(secOffset, AOTFileInfo::DATA_SEC_ALIGN); in SeparateTextSections()
304 secOffset = AlignUp(secOffset, AOTFileInfo::PAGE_ALIGN); in SeparateTextSections()
311 secOffset = AlignUp(secOffset, AOTFileInfo::TEXT_SEC_ALIGN); in SeparateTextSections()
318 secOffset = AlignUp(secOffset, AOTFileInfo::DATA_SEC_ALIGN); in SeparateTextSections()
Dan_file_info.h52 curTextSecOffset_ = AlignUp(curTextSecOffset_, alignSize); in AlignTextSec()
/arkcompiler/ets_runtime/ecmascript/stackmap/
Dark_stackmap_builder.h47 offset_ = AlignUp(offset_, LLVMStackMapType::STACKMAP_ALIGN_BYTES); in AlignOffset()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dllvm_codegen.cpp93 ASSERT(REQUIRED_SECS_LIMIT == AlignUp(REQUIRED_SECS_LIMIT, PageSize())); in CodeSpace()
98 ASSERT(UNREQUIRED_SECS_LIMIT == AlignUp(UNREQUIRED_SECS_LIMIT, PageSize())); in CodeSpace()
131 curPos = AlignUp(curPos, alignSize); in Alloca()
175 size = AlignUp(size, static_cast<size_t>(MemAlignment::MEM_ALIGN_REGION)); in AllocaDataSection()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot.cpp202 size_t objectSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()
227 size_t strSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()

12