/art/runtime/base/ |
H A 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_siz 96 AtUnchecked(size_t index, size_t element_size, size_t alignment) argument [all...] |
H A D | bit_utils.h | 164 #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 D | array_slice.h | 66 // 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 D | DexRandomAccessFile.java | 28 * 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 D | writer.h | 158 void Pad(int alignment) { argument 159 DCHECK_NE(alignment, 0); 160 data_->resize(RoundUp(data_->size(), alignment), 0);
|
/art/compiler/ |
H A D | exception_test.cc | 84 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 D | elf_builder.h | 743 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 D | image_writer.cc | 599 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 D | jit_code_cache.cc | 241 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 D | dex_file_verifier.h | 51 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
|
H A D | dex_file_verifier.cc | 235 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 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/arch/arm/ |
H A D | quick_entrypoints_arm.S | 425 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 D | assembler_x86.h | 623 void Align(int alignment, int offset);
|
H A D | assembler_x86.cc | 1779 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 D | quick_entrypoints_mips64.S | 373 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 D | assembler_x86_64.h | 694 void Align(int alignment, int offset); 927 // Write this 64-bit value as two 32-bit words for alignment reasons
|
H A D | assembler_x86_64.cc | 2340 void X86_64Assembler::Align(int alignment, int offset) { argument 2341 CHECK(IsPowerOfTwo(alignment)); 2343 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) {
|