Home
last modified time | relevance | path

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

/art/runtime/
Dverify_object-inl.h36 bool failed = !IsAligned<kObjectAlignment>(obj); in VerifyObject()
39 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObject()
Dutils.h90 static inline bool IsAligned(T x) { in IsAligned() function
96 static inline bool IsAligned(T* x) { in IsAligned() function
97 return IsAligned<n>(reinterpret_cast<const uintptr_t>(x)); in IsAligned()
106 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
109 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
Dmem_map.cc501 DCHECK(IsAligned<kPageSize>(begin_)); in RemapAtEnd()
502 DCHECK(IsAligned<kPageSize>(base_begin_)); in RemapAtEnd()
503 DCHECK(IsAligned<kPageSize>(reinterpret_cast<byte*>(base_begin_) + base_size_)); in RemapAtEnd()
504 DCHECK(IsAligned<kPageSize>(new_end)); in RemapAtEnd()
519 DCHECK(IsAligned<kPageSize>(tail_base_size)); in RemapAtEnd()
Dfault_handler.cc236 if (method_obj == 0 || !IsAligned<kObjectAlignment>(method_obj)) { in IsInGeneratedCode()
250 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
Dlock_word.h92 DCHECK(IsAligned < 1 << kStateSize>(target)); in FromForwardingAddress()
Dimage.cc96 if (!IsAligned<kPageSize>(patch_delta_)) { in IsValid()
Doat.cc88 CHECK(IsAligned<kPageSize>(image_file_location_oat_data_begin)); in OatHeader()
122 if (!IsAligned<kPageSize>(executable_offset_)) { in IsValid()
125 if (!IsAligned<kPageSize>(image_patch_delta_)) { in IsValid()
Dclass_linker_test.cc779 EXPECT_TRUE(IsAligned<4>(data_offset)); // Check 4 byte alignment. in TEST_F()
781 EXPECT_TRUE(IsAligned<8>(data_offset)); // Check 8 byte alignment. in TEST_F()
791 EXPECT_TRUE(IsAligned<8>(data_offset)); // Longs require 8 byte alignment in TEST_F()
796 EXPECT_TRUE(IsAligned<8>(data_offset)); // Doubles require 8 byte alignment in TEST_F()
801 EXPECT_TRUE(IsAligned<4>(data_offset)); // Ints require 4 byte alignment in TEST_F()
806 EXPECT_TRUE(IsAligned<2>(data_offset)); // Chars require 2 byte alignment in TEST_F()
811 EXPECT_TRUE(IsAligned<2>(data_offset)); // Shorts require 2 byte alignment in TEST_F()
Dclass_linker.cc5015 if (current_field != num_fields && !IsAligned<8>(field_offset.Uint32Value())) { in LinkFields()
5035 DCHECK(current_field == num_fields || IsAligned<8>(field_offset.Uint32Value())) in LinkFields()
/art/runtime/gc/space/
Dmalloc_space.cc49 CHECK(IsAligned<kGcCardSize>(reinterpret_cast<uintptr_t>(mem_map->Begin()))); in MallocSpace()
50 CHECK(IsAligned<kGcCardSize>(reinterpret_cast<uintptr_t>(mem_map->End()))); in MallocSpace()
167 DCHECK(IsAligned<accounting::CardTable::kCardSize>(begin_)); in CreateZygoteSpace()
168 DCHECK(IsAligned<accounting::CardTable::kCardSize>(End())); in CreateZygoteSpace()
169 DCHECK(IsAligned<kPageSize>(begin_)); in CreateZygoteSpace()
170 DCHECK(IsAligned<kPageSize>(End())); in CreateZygoteSpace()
Dbump_pointer_space-inl.h61 DCHECK(IsAligned<kAlignment>(num_bytes)); in AllocNonvirtualWithoutAccounting()
Dlarge_object_space.cc375 DCHECK(IsAligned<kAlignment>(next_next_info->ByteSize())); in Free()
/art/runtime/gc/accounting/
Dcard_table-inl.h64 while (!IsAligned<sizeof(word)>(card_cur) && card_cur < card_end) { in Scan()
136 while (!IsAligned<sizeof(word)>(card_cur) && card_cur < card_end) { in ModifyCardsAtomic()
149 while (!IsAligned<sizeof(word)>(card_end) && card_end > card_cur) { in ModifyCardsAtomic()
Dspace_bitmap.cc75 DCHECK(IsAligned<kBitsPerWord * kAlignment>(new_end)); in SetHeapLimit()
/art/runtime/interpreter/
Dinterpreter_common.h293 DCHECK(IsAligned<4>(keys)); in DoPackedSwitch()
296 DCHECK(IsAligned<4>(targets)); in DoPackedSwitch()
318 DCHECK(IsAligned<4>(keys)); in DoSparseSwitch()
320 DCHECK(IsAligned<4>(entries)); in DoSparseSwitch()
/art/runtime/gc/collector/
Dsemi_space-inl.h37 CHECK(IsAligned<kPageSize>(obj)); in operator()
Dmark_sweep.cc376 if (UNLIKELY(obj == nullptr || !IsAligned<kPageSize>(obj) || in operator ()()
761 DCHECK(IsAligned<accounting::CardTable::kCardSize>(card_begin)); in ScanGrayObjects()
762 DCHECK(IsAligned<accounting::CardTable::kCardSize>(card_end)); in ScanGrayObjects()
Dmark_compact.cc154 if (!IsAligned<kPageSize>(obj)) { in operator ()()
/art/runtime/base/
Dhistogram-inl.h65 CHECK(IsAligned<2>(frequency_.size())); in GrowBuckets()
/art/runtime/gc/allocator/
Drosalloc.cc61 CHECK(IsAligned<kPageSize>(page_release_size_threshold_)); in RosAlloc()
343 DCHECK(IsAligned<kPageSize>(fpr->ByteSize(this))); in FreePages()
1558 DCHECK(IsAligned<kPageSize>(fpr_size)); in InspectAll()
1895 CHECK(IsAligned<kPageSize>(fpr_size)) in Verify()
2133 DCHECK(IsAligned<kPageSize>(fpr_size)); in ReleasePages()
/art/runtime/gc/
Dheap.cc587 if (IsAligned<kObjectAlignment>(obj)) { in DumpObject()
1056 return IsAligned<kObjectAlignment>(obj) && FindSpaceFromObject(obj, true) != nullptr; in IsValidObjectAddress()
1064 if (obj == nullptr || !IsAligned<kObjectAlignment>(obj)) { in IsValidContinuousSpaceObjectAddress()
1077 if (UNLIKELY(!IsAligned<kObjectAlignment>(obj))) { in IsLiveObjectLocked()
1178 CHECK(IsAligned<kObjectAlignment>(obj)) << "Object isn't aligned: " << obj; in VerifyObjectBody()
1181 CHECK(IsAligned<kObjectAlignment>(c)) << "Class " << c << " not aligned in object " << obj; in VerifyObjectBody()
/art/patchoat/
Dpatchoat.cc1014 if (!IsAligned<kPageSize>(base_delta)) { in patchoat()