Searched refs:IsAligned (Results 1 – 22 of 22) sorted by relevance
36 bool failed = !IsAligned<kObjectAlignment>(obj); in VerifyObject()39 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObject()
90 static inline bool IsAligned(T x) { in IsAligned() function96 static inline bool IsAligned(T* x) { in IsAligned() function97 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)
501 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()
236 if (method_obj == 0 || !IsAligned<kObjectAlignment>(method_obj)) { in IsInGeneratedCode()250 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
92 DCHECK(IsAligned < 1 << kStateSize>(target)); in FromForwardingAddress()
96 if (!IsAligned<kPageSize>(patch_delta_)) { in IsValid()
88 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()
779 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()
5015 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()
49 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()
61 DCHECK(IsAligned<kAlignment>(num_bytes)); in AllocNonvirtualWithoutAccounting()
375 DCHECK(IsAligned<kAlignment>(next_next_info->ByteSize())); in Free()
64 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()
75 DCHECK(IsAligned<kBitsPerWord * kAlignment>(new_end)); in SetHeapLimit()
293 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()
37 CHECK(IsAligned<kPageSize>(obj)); in operator()
376 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()
154 if (!IsAligned<kPageSize>(obj)) { in operator ()()
65 CHECK(IsAligned<2>(frequency_.size())); in GrowBuckets()
61 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()
587 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()
1014 if (!IsAligned<kPageSize>(base_delta)) { in patchoat()