Home
last modified time | relevance | path

Searched refs:IsAligned (Results 1 – 25 of 43) sorted by relevance

12

/art/libartbase/base/
Darena_allocator_test.cc143 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(allocation)) in TEST_F()
248 ASSERT_TRUE(IsAligned<ArenaAllocator::kAlignment>(original_allocation)); in TEST_F()
252 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(realloc_allocation)); in TEST_F()
255 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(after_alloc)); in TEST_F()
265 ASSERT_TRUE(IsAligned<ArenaAllocator::kAlignment>(original_allocation)); in TEST_F()
269 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(realloc_allocation)); in TEST_F()
272 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(after_alloc)); in TEST_F()
282 ASSERT_TRUE(IsAligned<ArenaAllocator::kAlignment>(original_allocation)); in TEST_F()
286 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(realloc_allocation)); in TEST_F()
289 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(after_alloc)); in TEST_F()
[all …]
Dbit_utils.h205 constexpr bool IsAligned(T x) { in IsAligned() function
211 inline bool IsAligned(T* x) { in IsAligned() function
212 return IsAligned<n>(reinterpret_cast<const uintptr_t>(x)); in IsAligned()
226 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
229 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
Dmemory_region.h154 return IsAligned<kRuntimePointerSize>(address); in IsWordAligned()
Dbit_memory_region.h114 DCHECK(IsAligned<sizeof(Result)>(data_)); in LoadBits()
279 DCHECK(IsAligned<sizeof(size_t)>(data_)); in VisitChunks()
/art/runtime/
Dverify_object.cc35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr()); in VerifyObjectImpl()
38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObjectImpl()
Dfault_handler.cc252 if (fault_pc == 0u || !IsUint<32>(fault_pc) || !IsAligned<4u>(fault_pc)) { in CheckForUnrecognizedImplicitSuspendCheckInBootImage()
551 static_assert(IsAligned<sizeof(void*)>(ArtMethod::Size(kRuntimePointerSize))); in IsValidMethod()
552 if (method == nullptr || !IsAligned<sizeof(void*)>(method)) { in IsValidMethod()
568 if (klass == nullptr || !IsAligned<kObjectAlignment>(klass)) { in IsValidMethod()
574 if (class_class == nullptr || !IsAligned<kObjectAlignment>(class_class)) { in IsValidMethod()
Dnterp_helpers.cc243 static_assert(IsAligned<kStackAlignment>(interpreter::kNterpMaxFrame)); in CanMethodUseNterp()
Dclass_linker_test.cc385 CHECK(!IsAligned<4>(field->GetOffset().Uint32Value())); in AssertClass()
1104 EXPECT_TRUE(IsAligned<4>(data_offset)); // Check 4 byte alignment. in TEST_F()
1106 EXPECT_TRUE(IsAligned<8>(data_offset)); // Check 8 byte alignment. in TEST_F()
1116 EXPECT_TRUE(IsAligned<8>(data_offset)); // Longs require 8 byte alignment in TEST_F()
1121 EXPECT_TRUE(IsAligned<8>(data_offset)); // Doubles require 8 byte alignment in TEST_F()
1126 EXPECT_TRUE(IsAligned<4>(data_offset)); // Ints require 4 byte alignment in TEST_F()
1131 EXPECT_TRUE(IsAligned<2>(data_offset)); // Chars require 2 byte alignment in TEST_F()
1136 EXPECT_TRUE(IsAligned<2>(data_offset)); // Shorts require 2 byte alignment in TEST_F()
Druntime_image.cc125 DCHECK(IsAligned<kObjectAlignment>(image_begin_ + sizeof(ImageHeader) + offset)); in Generate()
291 static_assert(IsAligned<sizeof(void*)>(ArtMethod::Size(kRuntimePointerSize))); in CreateImageSections()
1655 DCHECK(IsAligned<kObjectAlignment>(offset)); in CopyObject()
/art/runtime/gc/accounting/
Dcard_table-inl.h71 while (!IsAligned<sizeof(intptr_t)>(card_cur) && card_cur < card_end) { in Scan()
147 while (!IsAligned<sizeof(intptr_t)>(card_cur) && card_cur < card_end) { in ModifyCardsAtomic()
160 while (!IsAligned<sizeof(intptr_t)>(card_end) && card_end > card_cur) { in ModifyCardsAtomic()
/art/compiler/utils/arm/
Dassembler_arm_vixl.cc206 return IsAbsoluteUint<10>(offset) && IsAligned<4>(offset); // VFP addressing mode. in CanHoldLoadOffsetThumb()
208 return IsAbsoluteUint<10>(offset) && IsAligned<4>(offset); in CanHoldLoadOffsetThumb()
221 return IsAbsoluteUint<10>(offset) && IsAligned<4>(offset); // VFP addressing mode. in CanHoldStoreOffsetThumb()
223 return IsAbsoluteUint<10>(offset) && IsAligned<4>(offset); in CanHoldStoreOffsetThumb()
Djni_macro_assembler_arm_vixl.cc442 IsAligned<2u>(static_cast<size_t>(srcs[start].GetRegister().AsArm().AsSRegister())); in UseVstrForChunk()
529 if (IsAligned<2u>(start_sreg) && in MoveArguments()
530 IsAligned<kDRegSizeInBytes>(frame_offset) && in MoveArguments()
531 IsAligned<kDRegSizeInBytes>(total_size)) { in MoveArguments()
691 if (IsAligned<2u>(first_sreg) && in MoveArguments()
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc122 if (!IsAligned<2u>(bne_offset)) { in BneWWithOffset()
126 if (!IsAligned<2u>(target_offset)) { in BneWWithOffset()
511 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
596 ASSERT_TRUE(IsAligned<kArmCodeAlignment>(method_after_thunk_offset)); in TEST_F()
604 ASSERT_TRUE(IsAligned<kArmCodeAlignment>(thunk_offset)); in TEST_F()
606 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
640 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
700 ASSERT_TRUE(IsAligned<2u>(diff)); in TEST_F()
980 static_assert(IsAligned<kArmCodeAlignment>(expected_thunk_offset), in TEST_F()
992 static_assert(IsAligned<kArmCodeAlignment>(kLiteralOffset2 + kPcAdjustment), in TEST_F()
[all …]
/art/runtime/gc/space/
Dbump_pointer_space.cc261 DCHECK(IsAligned<kAlignment>(alignment)); in AlignEnd()
302 DCHECK(IsAligned<kAlignment>(size)); in SetBlockSizes()
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc671 ASSERT_TRUE(IsAligned<4u>(diff)); in TEST_F()
761 ASSERT_TRUE(IsAligned<kArm64CodeAlignment>(method_after_thunk_offset)); in TEST_F()
769 ASSERT_TRUE(IsAligned<kArm64CodeAlignment>(thunk_offset)); in TEST_F()
771 ASSERT_TRUE(IsAligned<4u>(diff)); in TEST_F()
801 ASSERT_TRUE(IsAligned<4u>(diff)); in TEST_F()
872 bool unaligned = !IsAligned<8u>((adrp_offset) + 4u + static_cast<uint32_t>(pcrel_disp)); in TEST_F()
987 bool unaligned = !IsAligned<8u>((adrp_offset) + 4u + static_cast<uint32_t>(pcrel_disp)); in TEST_F()
1037 ASSERT_TRUE(IsAligned<4u>(diff)); in TEST_F()
/art/runtime/oat/
Doat.cc103 if (!IsAligned<kElfSegmentAlignment>(executable_offset_)) { in IsValid()
125 if (!IsAligned<kElfSegmentAlignment>(executable_offset_)) { in GetValidationErrorMessage()
Doat_file.cc466 IsAligned<alignof(IndexBssMapping)>(index_bss_mapping_offset) && in ReadIndexBssMapping()
560 if (UNLIKELY(!IsAligned<4>(type_lookup_table_start))) { in ComputeAndCheckTypeLookupTableData()
653 if (!IsAligned<sizeof(uint32_t)>(data_img_rel_ro_begin_) || in Setup()
654 !IsAligned<sizeof(uint32_t)>(data_img_rel_ro_end_) || in Setup()
655 !IsAligned<sizeof(uint32_t)>(data_img_rel_ro_app_image_) || in Setup()
675 !IsAligned<alignof(GcRoot<mirror::Object>)>(bss_end_)) { in Setup()
963 if (UNLIKELY(!IsAligned<alignof(uint32_t)>(class_offsets_offset))) { in Setup()
Dimage.cc151 if (!IsAligned<kElfSegmentAlignment>(image_reservation_size_)) { in IsValid()
Dstack_map.h241 DCHECK(IsAligned<kFrameSlotSize>(packed_value)); in PackValue()
/art/runtime/gc/
Dverification.cc142 return IsAligned<kObjectAlignment>(addr) && IsAddressInHeapSpace(addr, out_space); in IsValidHeapObjectAddress()
/art/dex2oat/
Ddex2oat_image_test.cc116 static_assert(IsAligned<kElfSegmentAlignment>(ART_BASE_ADDRESS_MIN_DELTA)); in ReserveCoreImageAddressSpace()
117 static_assert(IsAligned<kElfSegmentAlignment>(ART_BASE_ADDRESS_MAX_DELTA)); in ReserveCoreImageAddressSpace()
/art/runtime/jni/
Dlocal_reference_table.cc354 if (UNLIKELY(IsCheckJniEnabled()) && !IsAligned<kCheckJniEntriesPerReference>(top_index)) { in Add()
356 for (; !IsAligned<kCheckJniEntriesPerReference>(top_index); ++top_index) { in Add()
/art/runtime/mirror/
Dstring-alloc-inl.h218 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment), in Alloc()
/art/compiler/debug/
Delf_debug_writer.cc240 auto is_pc_aligned = [](const void* pc) { return IsAligned<kPcAlign>(pc); }; in PackElfFileForJIT()
/art/runtime/gc/collector/
Dmark_compact-inl.h104 DCHECK(IsAligned<kAlignment>(end)); in VisitLiveStrides()

12