Searched refs:alignment (Results 1 - 18 of 18) sorted by relevance

/art/runtime/base/
H A 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_siz
96 AtUnchecked(size_t index, size_t element_size, size_t alignment) argument
[all...]
H A Dbit_utils.h164 #define CHECK_ALIGNED(value, alignment) \
165 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
167 #define DCHECK_ALIGNED(value, alignment) \
168 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value)
170 #define CHECK_ALIGNED_PARAM(value, alignment) \
171 CHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value)
173 #define DCHECK_ALIGNED_PARAM(value, alignment) \
174 DCHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value)
H A Darray_slice.h66 // each element being element_size bytes long and having the given alignment. Both start_offset
72 size_t alignment = alignof(T))
81 array_ = &array->At(start_offset, element_size_, alignment);
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DDexRandomAccessFile.java28 * and also provides word-alignment functions.
296 * @param alignment N to align to.
298 public void alignForwards(int alignment) throws IOException { argument
300 long mask = alignment - 1;
302 int extra = alignment - (int) (offset & mask);
309 * @param alignment N to align to.
311 public void alignBackwards(int alignment) throws IOException { argument
313 long mask = alignment - 1;
/art/compiler/debug/dwarf/
H A Dwriter.h158 void Pad(int alignment) { argument
159 DCHECK_NE(alignment, 0);
160 data_->resize(RoundUp(data_->size(), alignment), 0);
/art/compiler/
H A Dexception_test.cc84 const size_t alignment = GetInstructionSetAlignment(kRuntimeISA); local
85 fake_header_code_and_maps_.reserve(fake_header_code_and_maps_.size() + alignment);
89 size_t padding = RoundUp(offset, alignment) - offset;
H A Delf_builder.h743 off_t AlignFileOffset(size_t alignment) { argument
744 return stream_.Seek(RoundUp(stream_.Seek(0, kSeekCurrent), alignment), kSeekSet);
747 Elf_Addr AlignVirtualAddress(size_t alignment) { argument
748 return virtual_address_ = RoundUp(virtual_address_, alignment);
H A Dimage_writer.cc599 size_t offset_delta = RoundUp(object_size, kObjectAlignment); // 64-bit alignment
1397 image_objects_offset_begin_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); // 64-bit-alignment
1508 // Normal alignment.
1592 // Round up to the alignment the string table expects. See HashSet::WriteToMemory.
1598 // Round up to the alignment the class table expects. See HashSet::WriteToMemory.
1756 size_t alignment = ArtMethod::Alignment(target_ptr_size_); local
1757 memcpy(dest, pair.first, LengthPrefixedArray<ArtMethod>::ComputeSize(0, size, alignment));
1759 reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(dest)->ClearPadding(size, alignment);
/art/runtime/jit/
H A Djit_code_cache.cc241 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); local
242 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment);
317 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); local
318 // Ensure the header ends up at expected instruction alignment.
319 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment);
1000 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); local
1002 mspace_memalign(code_mspace_, alignment, code_size));
1003 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment);
1004 // Ensure the header ends up at expected instruction alignment.
1005 DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(result + header_size), alignment);
[all...]
/art/runtime/
H A Ddex_file_verifier.h51 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
H A Ddex_file_verifier.cc235 size_t alignment,
247 if (alignment != 0 && !IsAlignedParam(offset, alignment)) {
248 ErrorStringPrintf("Offset(%d) should be aligned by %zu for %s.", offset, alignment, label);
1329 // Get the right alignment mask for the type of section.
2237 // Get the right alignment mask for the type of section.
233 CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label) argument
/art/runtime/arch/mips/
H A 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/arch/arm/
H A Dquick_entrypoints_arm.S425 mov sp, r4 @ 16B alignment ourselves.
1138 // assuming the buf size alignment.
1142 // object alignment. (addr + 7) & ~7.
1370 sub sp, sp, #8 // Stack alignment.
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
1778 * on long strings (but preserve incoming alignment)
/art/compiler/utils/x86/
H A Dassembler_x86.h623 void Align(int alignment, int offset);
H A Dassembler_x86.cc1779 void X86Assembler::Align(int alignment, int offset) { argument
1780 CHECK(IsPowerOfTwo(alignment));
1782 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) {
/art/runtime/arch/mips64/
H A Dquick_entrypoints_mips64.S373 dsrl $t1, $t1, 4 # enforce 16 byte stack alignment
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/
H A Dassembler_x86_64.h694 void Align(int alignment, int offset);
927 // Write this 64-bit value as two 32-bit words for alignment reasons
H A Dassembler_x86_64.cc2340 void X86_64Assembler::Align(int alignment, int offset) { argument
2341 CHECK(IsPowerOfTwo(alignment));
2343 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) {

Completed in 487 milliseconds