Home
last modified time | relevance | path

Searched refs:IsAligned (Results 1 - 22 of 22) sorted by relevance

/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dcode_allocator_test.cpp42 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 Darena_allocator_test.cpp65 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 Dcode_allocator_test.cpp38 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 Darena_allocator_test.cpp64 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 Dmachine_code.cpp183 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 Dmem.h109 constexpr inline bool IsAligned(T value, size_t alignment) in IsAligned() function
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dinternal_allocator_test.cpp156 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 Dfreelist_allocator_test.cpp438 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 Dclass_linker_test.cpp525 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 Dobject_helpers-inl.h109 ASSERT(IsAligned(ToUintPtr(begin), DEFAULT_ALIGNMENT_IN_BYTES)); in TraverseArray()
224 ASSERT(IsAligned(ToUintPtr(begin), DEFAULT_ALIGNMENT_IN_BYTES)); in TraverseArray()
H A Dheap_verifier.cpp90 return IsAligned<DEFAULT_ALIGNMENT_IN_BYTES>(ToUintPtr(addr)) && IsHeapAddress(addr); in IsValidObjectAddress()
H A Dobject-references-iterator-inl.h56 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 Ditems_pool.h107 if (UNLIKELY(!IsAligned<alignof(Item)>(uintptr_t(item)))) { in IsValidItem()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_utils.h132 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 Dbit_utils.h133 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 Dcode_info_tables.h55 ASSERT(IsAligned(address, GetInstructionAlignment(arch))); in PackAddress()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dcard_table.cpp44 ASSERT(IsAligned<GetCardSize()>(minAddress)); in CardTable()
/arkcompiler/runtime_core/static_core/runtime/
H A Dosr.cpp151 ASSERT(IsAligned(bytes, ArchTraits<RUNTIME_ARCH>::POINTER_SIZE)); in PrepareOsrEntry()
H A Dclass_linker.cpp638 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 Dclass-inl.h576 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 Dets_string_builder.cpp163 ASSERT(IsAligned(ToUintPtr(srcData), sizeof(uint64_t))); in ReconstructStringAsUtf16()
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/
H A Delf_builder.h1109 ASSERT(IsAligned<sizeof(uint32_t)>(currentBitmap_->GetContainerSizeInBytes())); in EndClass()

Completed in 25 milliseconds