/art/libartbase/base/ |
D | arena_allocator_test.cc | 143 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 …]
|
D | bit_utils.h | 205 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)
|
D | memory_region.h | 154 return IsAligned<kRuntimePointerSize>(address); in IsWordAligned()
|
D | bit_memory_region.h | 114 DCHECK(IsAligned<sizeof(Result)>(data_)); in LoadBits() 279 DCHECK(IsAligned<sizeof(size_t)>(data_)); in VisitChunks()
|
/art/runtime/ |
D | verify_object.cc | 35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr()); in VerifyObjectImpl() 38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObjectImpl()
|
D | fault_handler.cc | 252 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()
|
D | nterp_helpers.cc | 243 static_assert(IsAligned<kStackAlignment>(interpreter::kNterpMaxFrame)); in CanMethodUseNterp()
|
D | class_linker_test.cc | 385 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()
|
D | runtime_image.cc | 125 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/ |
D | card_table-inl.h | 71 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/ |
D | assembler_arm_vixl.cc | 206 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()
|
D | jni_macro_assembler_arm_vixl.cc | 442 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/ |
D | relative_patcher_thumb2_test.cc | 122 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/ |
D | bump_pointer_space.cc | 261 DCHECK(IsAligned<kAlignment>(alignment)); in AlignEnd() 302 DCHECK(IsAligned<kAlignment>(size)); in SetBlockSizes()
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 671 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/ |
D | oat.cc | 103 if (!IsAligned<kElfSegmentAlignment>(executable_offset_)) { in IsValid() 125 if (!IsAligned<kElfSegmentAlignment>(executable_offset_)) { in GetValidationErrorMessage()
|
D | oat_file.cc | 466 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()
|
D | image.cc | 151 if (!IsAligned<kElfSegmentAlignment>(image_reservation_size_)) { in IsValid()
|
D | stack_map.h | 241 DCHECK(IsAligned<kFrameSlotSize>(packed_value)); in PackValue()
|
/art/runtime/gc/ |
D | verification.cc | 142 return IsAligned<kObjectAlignment>(addr) && IsAddressInHeapSpace(addr, out_space); in IsValidHeapObjectAddress()
|
/art/dex2oat/ |
D | dex2oat_image_test.cc | 116 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/ |
D | local_reference_table.cc | 354 if (UNLIKELY(IsCheckJniEnabled()) && !IsAligned<kCheckJniEntriesPerReference>(top_index)) { in Add() 356 for (; !IsAligned<kCheckJniEntriesPerReference>(top_index); ++top_index) { in Add()
|
/art/runtime/mirror/ |
D | string-alloc-inl.h | 218 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment), in Alloc()
|
/art/compiler/debug/ |
D | elf_debug_writer.cc | 240 auto is_pc_aligned = [](const void* pc) { return IsAligned<kPcAlign>(pc); }; in PackElfFileForJIT()
|
/art/runtime/gc/collector/ |
D | mark_compact-inl.h | 104 DCHECK(IsAligned<kAlignment>(end)); in VisitLiveStrides()
|