/arkcompiler/ets_runtime/ecmascript/mem/ |
D | tlab_allocator-inl.h | 68 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()
|
D | heap-inl.h | 128 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()
|
D | heap_region_allocator.cpp | 52 …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()
|
D | gc_bitset.h | 49 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()
|
D | chunk.cpp | 65 uintptr_t result = AlignUp(area->GetBegin(), MEM_ALIGN); in Expand()
|
D | chunk.h | 47 size = AlignUp(size, MEM_ALIGN); in Allocate()
|
D | mem.h | 104 inline T AlignUp(T x, size_t alignment) in AlignUp() function
|
D | space.cpp | 90 …size_t alignedSize = AlignUp(objectSize + sizeof(Region) + HUGE_OBJECT_BITSET_SIZE, PANDA_POOL_ALI… in Allocate()
|
/arkcompiler/runtime_core/libpandabase/mem/ |
D | arena-inl.h | 31 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()
|
D | mem.h | 98 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);
|
D | mmap_mem_pool-inl.h | 139 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()
|
D | arena_allocator.cpp | 76 …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/ |
D | arena_test.cpp | 89 …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()
|
D | mmap_fixed_test.cpp | 42 cur_addr = AlignUp(cur_addr, page_size); in TEST_F() 45 end_addr = AlignUp(end_addr, sizeof(uint64_t)); in TEST_F()
|
D | pool_map_test.cpp | 90 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/ |
D | map.cpp | 29 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/ |
D | map.cpp | 41 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/ |
D | js_hclass-inl.h | 195 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/ |
D | elf_builder.cpp | 308 …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()
|
D | executed_memory_allocator.h | 31 MemMap buf = MachineCodePageMap(AlignUp(size, PageSize()), PAGE_PROT_EXEC_READWRITE); in AllocateBuf()
|
D | elf_reader.cpp | 259 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()
|
D | an_file_info.h | 52 curTextSecOffset_ = AlignUp(curTextSecOffset_, alignSize); in AlignTextSec()
|
/arkcompiler/ets_runtime/ecmascript/stackmap/ |
D | ark_stackmap_builder.h | 47 offset_ = AlignUp(offset_, LLVMStackMapType::STACKMAP_ALIGN_BYTES); in AlignOffset()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | llvm_codegen.cpp | 93 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/ |
D | snapshot.cpp | 202 size_t objectSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile() 227 size_t strSize = AlignUp(EcmaStringAccessor(str).ObjectSize(), in WriteToFile()
|