/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | code_allocator_test.cpp | 42 static bool IsAligned(const void *ptr, size_t alignment) in IsAligned() function in ark::CodeAllocatorTest 71 ASSERT_TRUE(IsAligned(codeBuff, 4U * SIZE_1K)); in TEST_F()
|
H A D | arena_allocator_test.cpp | 65 static bool IsAligned(const void *ptr, size_t alignment) in IsAligned() function in ark::ArenaAllocatorTest 199 ASSERT_TRUE(IsAligned(addr, GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT))); in TEST_F() 202 ASSERT_TRUE(IsAligned(addr, GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT))); in TEST_F()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | code_allocator_test.cpp | 38 static bool IsAligned(const void *ptr, size_t alignment) in IsAligned() function in panda::CodeAllocatorTest 65 ASSERT_TRUE(IsAligned(code_buff, 4 * SIZE_1K)); in HWTEST_F()
|
H A D | arena_allocator_test.cpp | 64 static bool IsAligned(const void *ptr, size_t alignment) in IsAligned() function in panda::ArenaAllocatorTest 180 ASSERT_TRUE(IsAligned(addr, GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT))); in HWTEST_F() 183 ASSERT_TRUE(IsAligned(addr, GetAlignmentInBytes(DEFAULT_ARENA_ALIGNMENT))); in HWTEST_F()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | machine_code.cpp | 183 ASSERT(IsAligned(reinterpret_cast<uintptr_t>(textStart), TEXT_ALIGN) || in SetBaselineCodeData() 184 IsAligned(reinterpret_cast<uintptr_t>(textStart), DATA_ALIGN)); in SetBaselineCodeData() 186 ASSERT(IsAligned(reinterpret_cast<uintptr_t>(textStart), TEXT_ALIGN)); in SetBaselineCodeData()
|
H A D | mem.h | 109 constexpr inline bool IsAligned(T value, size_t alignment) in IsAligned() function
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | internal_allocator_test.cpp | 156 auto isAligned = [](void *ptr) { return IsAligned(reinterpret_cast<uintptr_t>(ptr), ALIGNMENT); }; in TEST_F() 198 auto isAligned = [](void *ptr) { return IsAligned(reinterpret_cast<uintptr_t>(ptr), ALIGNMENT); }; in TEST_F()
|
H A D | freelist_allocator_test.cpp | 438 ASSERT_FALSE(IsAligned(reinterpret_cast<uintptr_t>(ptr3), 128U)); in TEST_F() 439 ASSERT_TRUE(IsAligned(reinterpret_cast<uintptr_t>(ptr5), 128U)); in TEST_F()
|
H A D | class_linker_test.cpp | 525 if (!IsAligned<sizeof(double)>(offset + ClassHelper::OBJECT_POINTER_SIZE)) { in TEST_F() 535 if (!IsAligned<sizeof(double)>(offset + ClassHelper::OBJECT_POINTER_SIZE)) { in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | object_helpers-inl.h | 109 ASSERT(IsAligned(ToUintPtr(begin), DEFAULT_ALIGNMENT_IN_BYTES)); in TraverseArray() 224 ASSERT(IsAligned(ToUintPtr(begin), DEFAULT_ALIGNMENT_IN_BYTES)); in TraverseArray()
|
H A D | heap_verifier.cpp | 90 return IsAligned<DEFAULT_ALIGNMENT_IN_BYTES>(ToUintPtr(addr)) && IsHeapAddress(addr); in IsValidObjectAddress()
|
H A D | object-references-iterator-inl.h | 56 ASSERT(IsAligned(ToUintPtr(begin), DEFAULT_ALIGNMENT_IN_BYTES)); in Iterate()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/mem/ |
H A D | items_pool.h | 107 if (UNLIKELY(!IsAligned<alignof(Item)>(uintptr_t(item)))) { in IsValidItem()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | bit_utils.h | 132 constexpr bool IsAligned(T value) in IsAligned() function 139 constexpr bool IsAligned(T value, size_t n) in IsAligned() function
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | bit_utils.h | 133 constexpr bool IsAligned(T value) in IsAligned() function 140 constexpr bool IsAligned(T value, size_t n) in IsAligned() function
|
/arkcompiler/runtime_core/static_core/compiler/code_info/ |
H A D | code_info_tables.h | 55 ASSERT(IsAligned(address, GetInstructionAlignment(arch))); in PackAddress()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | card_table.cpp | 44 ASSERT(IsAligned<GetCardSize()>(minAddress)); in CardTable()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | osr.cpp | 151 ASSERT(IsAligned(bytes, ArchTraits<RUNTIME_ARCH>::POINTER_SIZE)); in PrepareOsrEntry()
|
H A D | class_linker.cpp | 638 if (!IsAligned<SIZE_64>(offset) && (!fields64->empty() || !taggedFields->empty())) { in LayoutFields() 651 if (!IsAligned<SIZE_32>(offset) && !fields32->empty()) { in LayoutFields() 662 if (!IsAligned<SIZE_16>(offset) && !fields16->empty()) { in LayoutFields()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | class-inl.h | 576 if (!IsAligned<SIZE_64>(size) && (num64bitSfields > 0 || numTaggedSfields > 0)) { 585 if (!IsAligned<SIZE_32>(size) && num32bitSfields > 0) { 593 if (!IsAligned<SIZE_16>(size) && num16bitSfields > 0) {
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_string_builder.cpp | 163 ASSERT(IsAligned(ToUintPtr(srcData), sizeof(uint64_t))); in ReconstructStringAsUtf16()
|
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/ |
H A D | elf_builder.h | 1109 ASSERT(IsAligned<sizeof(uint32_t)>(currentBitmap_->GetContainerSizeInBytes())); in EndClass()
|