/art/runtime/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 | bit_utils.h | 164 #define CHECK_ALIGNED(value, alignment) \ argument 165 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value) 167 #define DCHECK_ALIGNED(value, alignment) \ argument 168 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value) 170 #define CHECK_ALIGNED_PARAM(value, alignment) \ argument 171 CHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value) 173 #define DCHECK_ALIGNED_PARAM(value, alignment) \ argument 174 DCHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value)
|
D | array_slice.h | 72 size_t alignment = alignof(T)) 81 array_ = &array->At(start_offset, element_size_, alignment); in array_()
|
/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/compiler/debug/dwarf/ |
D | writer.h | 158 void Pad(int alignment) { in Pad() argument 159 DCHECK_NE(alignment, 0); in Pad() 160 data_->resize(RoundUp(data_->size(), alignment), 0); in Pad()
|
/art/compiler/ |
D | exception_test.cc | 84 const size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in SetUp() local 85 fake_header_code_and_maps_.reserve(fake_header_code_and_maps_.size() + alignment); in SetUp() 89 size_t padding = RoundUp(offset, alignment) - offset; in SetUp()
|
D | elf_builder.h | 743 off_t AlignFileOffset(size_t alignment) { in AlignFileOffset() argument 744 return stream_.Seek(RoundUp(stream_.Seek(0, kSeekCurrent), alignment), kSeekSet); in AlignFileOffset() 747 Elf_Addr AlignVirtualAddress(size_t alignment) { in AlignVirtualAddress() argument 748 return virtual_address_ = RoundUp(virtual_address_, alignment); in AlignVirtualAddress()
|
D | image_writer.cc | 1763 size_t alignment = ArtMethod::Alignment(target_ptr_size_); in CopyAndFixupNativeData() local 1764 memcpy(dest, pair.first, LengthPrefixedArray<ArtMethod>::ComputeSize(0, size, alignment)); in CopyAndFixupNativeData() 1766 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(dest)->ClearPadding(size, alignment); in CopyAndFixupNativeData()
|
/art/runtime/jit/ |
D | jit_code_cache.cc | 241 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in FromCodeToAllocation() local 242 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment); in FromCodeToAllocation() 317 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in CommitCodeInternal() local 319 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment); in CommitCodeInternal() 1006 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in AllocateCode() local 1008 mspace_memalign(code_mspace_, alignment, code_size)); in AllocateCode() 1009 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment); in AllocateCode() 1011 DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(result + header_size), alignment); in AllocateCode()
|
/art/runtime/ |
D | dex_file_verifier.h | 51 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
|
D | dex_file_verifier.cc | 235 size_t alignment, in CheckValidOffsetAndSize() argument 247 if (alignment != 0 && !IsAlignedParam(offset, alignment)) { in CheckValidOffsetAndSize() 248 ErrorStringPrintf("Offset(%d) should be aligned by %zu for %s.", offset, alignment, label); in CheckValidOffsetAndSize()
|
/art/runtime/arch/mips/ |
D | quick_entrypoints_mips.S | 125 # 2 words for alignment and bottom word will hold Method* 655 sll $sp, $t0, 4 # so we have to ensure ART 16B alignment ourselves. 781 sll $sp, $t0, 4 # so we have to ensure ART 16B alignment ourselves. 996 # saved registers used in art_quick_aput_obj: a0-a2, t0-t1, t9, ra. 8 words for 16B alignment.
|
/art/runtime/interpreter/mterp/ |
D | README.txt | 98 declarations for the segment type and alignment. The expected target
|
/art/runtime/arch/arm/ |
D | quick_entrypoints_arm.S | 425 mov sp, r4 @ 16B alignment ourselves. 1457 sub sp, #8 @ space for return value argument. Note: AAPCS stack alignment is 8B, no 1727 push {r4, r7-r12, lr} @ 8 words - keep alignment
|
/art/compiler/utils/x86/ |
D | assembler_x86.cc | 1779 void X86Assembler::Align(int alignment, int offset) { in Align() argument 1780 CHECK(IsPowerOfTwo(alignment)); in Align() 1782 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) { in Align()
|
D | assembler_x86.h | 623 void Align(int alignment, int offset);
|
/art/runtime/arch/mips64/ |
D | quick_entrypoints_mips64.S | 775 daddiu $t3, $a2, 24 # add 8 for ArtMethod* and 16 for stack alignment 878 daddiu $t3, $a2, 24 # add 8 for ArtMethod* and 16 for stack alignment
|
/art/compiler/utils/x86_64/ |
D | assembler_x86_64.h | 694 void Align(int alignment, int offset);
|
D | assembler_x86_64.cc | 2340 void X86_64Assembler::Align(int alignment, int offset) { in Align() argument 2341 CHECK(IsPowerOfTwo(alignment)); in Align() 2343 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) { in Align()
|