Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 19 of 19) sorted by relevance

/art/runtime/base/
Dlength_prefixed_array.h36 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 …]
Dbit_utils.h164 #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)
Darray_slice.h72 size_t alignment = alignof(T))
81 array_ = &array->At(start_offset, element_size_, alignment); in array_()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DDexRandomAccessFile.java298 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/
Dwriter.h158 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/
Dexception_test.cc84 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()
Delf_builder.h743 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()
Dimage_writer.cc1763 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/
Djit_code_cache.cc241 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/
Ddex_file_verifier.h51 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
Ddex_file_verifier.cc235 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/
Dquick_entrypoints_mips.S125 # 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/
DREADME.txt98 declarations for the segment type and alignment. The expected target
/art/runtime/arch/arm/
Dquick_entrypoints_arm.S425 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/
Dassembler_x86.cc1779 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()
Dassembler_x86.h623 void Align(int alignment, int offset);
/art/runtime/arch/mips64/
Dquick_entrypoints_mips64.S775 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/
Dassembler_x86_64.h694 void Align(int alignment, int offset);
Dassembler_x86_64.cc2340 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()