/art/libartbase/base/ |
D | length_prefixed_array.h | 36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 38 return AtUnchecked(index, element_size, alignment); 41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const { 43 return AtUnchecked(index, element_size, alignment); 46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 47 return StrideIterator<T>(&AtUnchecked(0, element_size, alignment), element_size); 51 size_t alignment = alignof(T)) const { 52 return StrideIterator<const T>(&AtUnchecked(0, element_size, alignment), element_size); 55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 56 return StrideIterator<T>(&AtUnchecked(size_, element_size, alignment), element_size); [all …]
|
D | zip_archive.cc | 52 bool ZipEntry::IsAlignedTo(size_t alignment) const { in IsAlignedTo() 53 DCHECK(IsPowerOfTwo(alignment)) << alignment; in IsAlignedTo() 54 return IsAlignedParam(zip_entry_->offset, static_cast<int>(alignment)); in IsAlignedTo() 193 size_t alignment) { in MapDirectlyOrExtract() argument 194 if (IsUncompressed() && IsAlignedTo(alignment) && GetFileDescriptor(handle_) >= 0) { in MapDirectlyOrExtract()
|
D | zip_archive.h | 63 size_t alignment); 69 bool IsAlignedTo(size_t alignment) const;
|
D | bit_utils.h | 216 #define CHECK_ALIGNED(value, alignment) \ argument 217 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value) 219 #define DCHECK_ALIGNED(value, alignment) \ argument 220 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value) 222 #define CHECK_ALIGNED_PARAM(value, alignment) \ argument 223 CHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value) 225 #define DCHECK_ALIGNED_PARAM(value, alignment) \ argument 226 DCHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value)
|
D | safe_copy_test.cc | 81 TEST(SafeCopyTest, alignment) { in TEST() argument
|
/art/libdexfile/dex/ |
D | compact_dex_utils.h | 29 size_t alignment) { in AlignmentPadVector() argument 30 while (!IsAlignedParam(dest->size(), alignment)) { in AlignmentPadVector()
|
D | dex_file_verifier.h | 73 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
|
D | dex_file_verifier.cc | 278 size_t alignment, in CheckValidOffsetAndSize() argument 290 if (alignment != 0 && !IsAlignedParam(offset, alignment)) { in CheckValidOffsetAndSize() 291 ErrorStringPrintf("Offset(%d) should be aligned by %zu for %s.", offset, alignment, label); in CheckValidOffsetAndSize()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | DexRandomAccessFile.java | 298 public void alignForwards(int alignment) throws IOException { in alignForwards() argument 300 long mask = alignment - 1; in alignForwards() 302 int extra = alignment - (int) (offset & mask); in alignForwards() 311 public void alignBackwards(int alignment) throws IOException { in alignBackwards() argument 313 long mask = alignment - 1; in alignBackwards()
|
/art/test/667-checker-simd-alignment/ |
D | info.txt | 1 Test SIMD vectorization alignment optimizations.
|
/art/libelffile/dwarf/ |
D | writer.h | 160 void Pad(int alignment) { in Pad() argument 161 DCHECK_NE(alignment, 0); in Pad() 162 data_->resize(RoundUp(data_->size(), alignment), 0); in Pad()
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_arm_base.cc | 77 bool MakeSpaceBefore(const ThunkData& next_thunk, size_t alignment) { in MakeSpaceBefore() argument 80 DCHECK_ALIGNED_PARAM(MaxNextOffset(), alignment); in MakeSpaceBefore() 81 DCHECK_ALIGNED_PARAM(next_thunk.MaxNextOffset(), alignment); in MakeSpaceBefore() 83 max_next_offset_ = RoundDown(next_thunk.MaxNextOffset() - CodeSize(), alignment); in MakeSpaceBefore() 452 size_t alignment = GetInstructionSetAlignment(instruction_set_); in AddUnreservedThunk() local 455 data->MakeSpaceBefore(*unreserved_thunks_[index + 1u], alignment); in AddUnreservedThunk() 459 while (index != 0u && unreserved_thunks_[index - 1u]->MakeSpaceBefore(*data, alignment)) { in AddUnreservedThunk()
|
/art/runtime/arch/mips/ |
D | asm_support_mips.S | 189 .macro CHECK_ALIGNMENT ba=$sp, tmp=$at, alignment=16 194 andi \tmp, \ba, \alignment-1
|
D | quick_entrypoints_mips.S | 129 # 2 words for alignment and bottom word will hold Method* 988 sll $sp, $t0, 4 # so we have to ensure ART 16B alignment ourselves. 1481 # saved registers used in art_quick_aput_obj: a0-a2, t0-t1, t9, ra. 8 words for 16B alignment. 1970 # Add array data offset and alignment. 1977 andi $a3, $a3, 4 # size shift is 3 (for 64 bit alignment). 1986 # Add array data offset and alignment (in branch delay slot). 1996 # Add array data offset and alignment. 2006 # Add array data offset and alignment. 2016 # Add array data offset and alignment.
|
/art/dexlayout/ |
D | dex_writer.h | 130 ALWAYS_INLINE void AlignTo(const size_t alignment) { in AlignTo() argument 131 position_ = RoundUp(position_, alignment); in AlignTo()
|
D | compact_dex_writer.h | 100 ScopedDataSectionItem(Stream* stream, dex_ir::Item* item, size_t alignment, Deduper* deduper);
|
D | compact_dex_writer.cc | 109 size_t alignment, in ScopedDataSectionItem() argument 113 alignment_(alignment), in ScopedDataSectionItem()
|
/art/runtime/jit/ |
D | jit_code_cache.cc | 660 size_t alignment = GetJitCodeAlignment(); in FromCodeToAllocation() local 661 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment); in FromCodeToAllocation() 1005 size_t alignment = GetJitCodeAlignment(); in CommitCodeInternal() local 1007 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment); in CommitCodeInternal() 2192 size_t alignment = GetJitCodeAlignment(); in AllocateCode() local 2194 mspace_memalign(exec_mspace_, alignment, allocation_size)); in AllocateCode() 2195 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment); in AllocateCode() 2197 DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(result + header_size), alignment); in AllocateCode()
|
/art/runtime/interpreter/mterp/ |
D | README.txt | 24 declarations for the segment type and alignment.
|
/art/runtime/arch/mips64/ |
D | quick_entrypoints_mips64.S | 1058 daddiu $t3, $a2, 24 # add 8 for ArtMethod* and 16 for stack alignment 1160 daddiu $t3, $a2, 24 # add 8 for ArtMethod* and 16 for stack alignment 1889 # Add array data offset and alignment. 1896 andi $a3, $a3, 4 # size shift is 3 (for 64 bit alignment). 1901 # Add array data offset and alignment. 1907 # Add array data offset and alignment. 1913 # Add array data offset and alignment. 1919 # Add array data offset and alignment.
|
/art/tools/hiddenapi/ |
D | hiddenapi.cc | 789 void InsertPadding(size_t alignment) { in InsertPadding() argument 790 size_t len = RoundUp(offset_, alignment) - offset_; in InsertPadding()
|
/art/compiler/optimizing/ |
D | nodes_vector.h | 276 void SetAlignment(Alignment alignment) { alignment_ = alignment; } in SetAlignment() argument
|
D | loop_optimization.cc | 1005 Alignment alignment = ComputeAlignment(i->offset, i->type, i->is_string_char_at); in ShouldVectorize() local 1006 if (alignment.Base() >= desired_alignment) { in ShouldVectorize() 1010 uint32_t offset = alignment.Offset() & (desired_alignment - 1u); in ShouldVectorize()
|
/art/libelffile/elf/ |
D | elf_builder.h | 797 off_t AlignFileOffset(size_t alignment) { in AlignFileOffset() argument 798 return stream_.Seek(RoundUp(stream_.Seek(0, kSeekCurrent), alignment), kSeekSet); in AlignFileOffset()
|
/art/compiler/utils/x86/ |
D | assembler_x86.cc | 2943 void X86Assembler::Align(int alignment, int offset) { in Align() argument 2944 CHECK(IsPowerOfTwo(alignment)); in Align() 2946 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) { in Align()
|