Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/art/runtime/interpreter/
Dcfi_asm_support.h48 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(reg, offset, size) .cfi_escape \ argument
50 0x92 /* bregx */, reg, (offset & 0x7F), \
54 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(reg, offset, size) .cfi_escape \ argument
56 0x92 /* bregx */, reg, (offset & 0x7F), \
62 #define CFI_EXPRESSION_BREG_1(n, b, offset) .cfi_escape \ argument
67 (offset) & 0x7f /* SLEB128 offset */
69 #define CFI_EXPRESSION_BREG_2(n, b, offset) .cfi_escape \ argument
74 ((offset) & 0x7f) | 0x80, /* SLEB128 offset, byte 1 */ \
75 ((offset) >> 7) & 0x7f /* SLEB128 offset, byte 2 */
80 #define CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(reg, offset, size) argument
[all …]
/art/runtime/arch/arm64/
Dasm_support_arm64.S44 .macro CFI_EXPRESSION_BREG n, b, offset argument
45 .if (-0x40 <= (\offset)) && ((\offset) < 0x40)
46 CFI_EXPRESSION_BREG_1(\n, \b, \offset)
47 .elseif (-0x2000 <= (\offset)) && ((\offset) < 0x2000)
48 CFI_EXPRESSION_BREG_2(\n, \b, \offset)
54 .macro CFI_DEF_CFA_BREG_PLUS_UCONST reg, offset, size
58 .if (((\offset) < -0x40) || ((\offset) >= 0x40))
62 CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(\reg, \offset, \size)
64 CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(\reg, \offset, \size)
123 .macro SAVE_REG reg, offset argument
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DOffsetTracker.java117 public RawDexObject getItemByOffset(int offset) { in getItemByOffset() argument
118 return offsettableMap.get(offset).getItem(); in getItemByOffset()
141 Offset offset = new Offset(false); in getNewOffset() local
142 offset.setOriginalOffset(originalOffset); in getNewOffset()
143 needsAssociationTable.add(offset); in getNewOffset()
144 return offset; in getNewOffset()
152 Offset offset = new Offset(true); in getNewHeaderOffset() local
153 offset.setOriginalOffset(originalOffset); in getNewHeaderOffset()
154 needsAssociationTable.add(offset); in getNewHeaderOffset()
155 return offset; in getNewHeaderOffset()
[all …]
/art/dex2oat/linker/
Dmulti_oat_relative_patcher.h65 void SetOffset(MethodReference method_ref, uint32_t offset) { in SetOffset() argument
66 method_offset_map_.map.Put(method_ref, offset + adjustment_); in SetOffset()
70 uint32_t ReserveSpace(uint32_t offset, in ReserveSpace() argument
73 offset += adjustment_; in ReserveSpace()
74 offset = relative_patcher_->ReserveSpace(offset, compiled_method, method_ref); in ReserveSpace()
75 offset -= adjustment_; in ReserveSpace()
76 return offset; in ReserveSpace()
80 uint32_t ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument
81 offset += adjustment_; in ReserveSpaceEnd()
82 offset = relative_patcher_->ReserveSpaceEnd(offset); in ReserveSpaceEnd()
[all …]
Drelative_patcher_test.h126 uint32_t offset = kTrampolineSize; in Link() local
129 offset = patcher_->ReserveSpace(offset, compiled_method.get(), compiled_method_refs_[idx]); in Link()
131 uint32_t alignment_size = CodeAlignmentSize(offset); in Link()
132 offset += alignment_size; in Link()
134 offset += sizeof(OatQuickMethodHeader); in Link()
135 uint32_t quick_code_offset = offset + compiled_method->CodeDelta(); in Link()
137 offset += code.size(); in Link()
142 offset = patcher_->ReserveSpaceEnd(offset); in Link()
143 uint32_t output_size = offset; in Link()
151 offset = kTrampolineSize; in Link()
[all …]
/art/compiler/utils/arm/
Dassembler_arm_vixl.cc135 int32_t offset, in CanSplitLoadStoreOffset() argument
138 int32_t other_bits = offset & ~allowed_offset_bits; in CanSplitLoadStoreOffset()
140 *add_to_base = offset & ~allowed_offset_bits; in CanSplitLoadStoreOffset()
141 *offset_for_load_store = offset & allowed_offset_bits; in CanSplitLoadStoreOffset()
150 int32_t offset) { in AdjustLoadStoreOffset() argument
151 DCHECK_NE(offset & ~allowed_offset_bits, 0); in AdjustLoadStoreOffset()
153 if (CanSplitLoadStoreOffset(allowed_offset_bits, offset, &add_to_base, &offset_for_load)) { in AdjustLoadStoreOffset()
157 ___ Mov(temp, offset); in AdjustLoadStoreOffset()
204 static bool CanHoldLoadOffsetThumb(LoadOperandType type, int offset) { in CanHoldLoadOffsetThumb() argument
211 return IsAbsoluteUint<12>(offset); in CanHoldLoadOffsetThumb()
[all …]
/art/libartbase/base/
Dmemory_region.h62 ALWAYS_INLINE T Load(uintptr_t offset) const { in Load() argument
63 T* address = ComputeInternalPointer<T>(offset); in Load()
72 ALWAYS_INLINE void Store(uintptr_t offset, T value) const { in Store() argument
73 T* address = ComputeInternalPointer<T>(offset); in Store()
81 ALWAYS_INLINE T LoadUnaligned(uintptr_t offset) const { in LoadUnaligned() argument
88 *ComputeInternalPointer<uint8_t>(offset + i) << (i * kBitsPerByte); in LoadUnaligned()
96 ALWAYS_INLINE void StoreUnaligned(uintptr_t offset, T value) const { in StoreUnaligned() argument
102 *ComputeInternalPointer<uint8_t>(offset + i) = in StoreUnaligned()
108 ALWAYS_INLINE T* PointerTo(uintptr_t offset) const { in PointerTo() argument
109 return ComputeInternalPointer<T>(offset); in PointerTo()
[all …]
Dhex_dump.cc44 size_t offset; /* offset to show while printing */ in Dump() local
47 offset = reinterpret_cast<size_t>(addr); in Dump()
49 offset = 0; in Dump()
56 size_t gap = offset & 0x0f; in Dump()
58 size_t line_offset = offset & ~0x0f; in Dump()
105 offset += count; in Dump()
/art/libelffile/dwarf/
Dwriter.h131 void UpdateUint32(size_t offset, uint32_t value) { in UpdateUint32() argument
132 DCHECK_LT(offset + 3, data_->size()); in UpdateUint32()
133 (*data_)[offset + 0] = (value >> 0) & 0xFF; in UpdateUint32()
134 (*data_)[offset + 1] = (value >> 8) & 0xFF; in UpdateUint32()
135 (*data_)[offset + 2] = (value >> 16) & 0xFF; in UpdateUint32()
136 (*data_)[offset + 3] = (value >> 24) & 0xFF; in UpdateUint32()
139 void UpdateUint64(size_t offset, uint64_t value) { in UpdateUint64() argument
140 DCHECK_LT(offset + 7, data_->size()); in UpdateUint64()
141 (*data_)[offset + 0] = (value >> 0) & 0xFF; in UpdateUint64()
142 (*data_)[offset + 1] = (value >> 8) & 0xFF; in UpdateUint64()
[all …]
Ddebug_frame_opcode_writer.h73 void ALWAYS_INLINE RelOffset(Reg reg, int offset) { in RelOffset() argument
74 Offset(reg, offset - current_cfa_offset_); in RelOffset()
84 int32_t offset, in RelOffsetForMany() argument
94 RelOffset(Reg(reg_base.num() + i), offset); in RelOffsetForMany()
95 offset += reg_size; in RelOffsetForMany()
119 void ALWAYS_INLINE Offset(Reg reg, int offset) { in Offset() argument
122 int factored_offset = FactorDataOffset(offset); // May change sign. in Offset()
193 void ALWAYS_INLINE DefCFA(Reg reg, int offset) { in DefCFA() argument
196 if (offset >= 0) { in DefCFA()
199 this->PushUleb128(offset); // Non-factored. in DefCFA()
[all …]
/art/compiler/trampolines/
Dtrampoline_compiler.cc53 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) { in CreateTrampoline() argument
61 ___ Ldr(pc, MemOperand(r0, offset.Int32Value())); in CreateTrampoline()
70 ___ Ldr(pc, MemOperand(temp_reg, offset.Int32Value())); in CreateTrampoline()
74 ___ Ldr(pc, MemOperand(tr, offset.Int32Value())); in CreateTrampoline()
94 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) { in CreateTrampoline() argument
99 __ JumpTo(Arm64ManagedRegister::FromXRegister(X0), Offset(offset.Int32Value()), in CreateTrampoline()
108 __ JumpTo(Arm64ManagedRegister::FromXRegister(IP1), Offset(offset.Int32Value()), in CreateTrampoline()
113 __ JumpTo(Arm64ManagedRegister::FromXRegister(TR), Offset(offset.Int32Value()), in CreateTrampoline()
133 ThreadOffset32 offset) { in CreateTrampoline() argument
137 __ fs()->jmp(Address::Absolute(offset)); in CreateTrampoline()
[all …]
/art/runtime/
Doat.cc201 static const void* GetTrampoline(const OatHeader& header, uint32_t offset) { in GetTrampoline() argument
202 return (offset != 0u) ? reinterpret_cast<const uint8_t*>(&header) + offset : nullptr; in GetTrampoline()
214 void OatHeader::SetJniDlsymLookupTrampolineOffset(uint32_t offset) { in SetJniDlsymLookupTrampolineOffset() argument
216 DCHECK_EQ(jni_dlsym_lookup_trampoline_offset_, 0U) << offset; in SetJniDlsymLookupTrampolineOffset()
218 jni_dlsym_lookup_trampoline_offset_ = offset; in SetJniDlsymLookupTrampolineOffset()
230 void OatHeader::SetJniDlsymLookupCriticalTrampolineOffset(uint32_t offset) { in SetJniDlsymLookupCriticalTrampolineOffset() argument
232 DCHECK_EQ(jni_dlsym_lookup_critical_trampoline_offset_, 0U) << offset; in SetJniDlsymLookupCriticalTrampolineOffset()
234 jni_dlsym_lookup_critical_trampoline_offset_ = offset; in SetJniDlsymLookupCriticalTrampolineOffset()
247 void OatHeader::SetQuickGenericJniTrampolineOffset(uint32_t offset) { in SetQuickGenericJniTrampolineOffset() argument
248 CHECK(offset == 0 || offset >= jni_dlsym_lookup_trampoline_offset_); in SetQuickGenericJniTrampolineOffset()
[all …]
/art/dex2oat/linker/x86/
Drelative_patcher_x86_base.cc25 uint32_t offset, in ReserveSpace() argument
28 return offset; // No space reserved; no limit on relative call distance. in ReserveSpace()
31 uint32_t X86BaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument
32 return offset; // No space reserved; no limit on relative call distance. in ReserveSpaceEnd()
35 uint32_t X86BaseRelativePatcher::WriteThunks(OutputStream* out ATTRIBUTE_UNUSED, uint32_t offset) { in WriteThunks() argument
36 return offset; // No thunks added; no limit on relative call distance. in WriteThunks()
/art/test/680-checker-deopt-dex-pc-0/src/
DMain.java21 public static int $noinline$getInt(byte[] array, int offset) { in $noinline$getInt() argument
24 return ((array[offset ] & 0xFF) << 0) + in $noinline$getInt()
25 ((array[offset + 1] & 0xFF) << 8) + in $noinline$getInt()
26 ((array[offset + 2] & 0xFF) << 16) + in $noinline$getInt()
27 ((array[offset + 3] & 0xFF) << 24); in $noinline$getInt()
/art/compiler/utils/arm64/
Dassembler_arm64.cc107 void Arm64Assembler::SpillRegisters(CPURegList registers, int offset) { in SpillRegisters() argument
113 if (!IsAlignedParam(offset, 2 * size) && registers.GetCount() % 2 != 0) { in SpillRegisters()
115 ___ Str(dst0, MemOperand(sp, offset)); in SpillRegisters()
116 cfi_.RelOffset(DWARFReg(dst0), offset); in SpillRegisters()
117 offset += size; in SpillRegisters()
122 ___ Stp(dst0, dst1, MemOperand(sp, offset)); in SpillRegisters()
123 cfi_.RelOffset(DWARFReg(dst0), offset); in SpillRegisters()
124 cfi_.RelOffset(DWARFReg(dst1), offset + size); in SpillRegisters()
125 offset += 2 * size; in SpillRegisters()
129 ___ Str(dst0, MemOperand(sp, offset)); in SpillRegisters()
[all …]
/art/libdexfile/dex/
Ddex_file_exception_helpers.cc26 int32_t offset = -1; in CatchHandlerIterator() local
38 offset = tries->handler_off_; in CatchHandlerIterator()
45 offset = try_item != nullptr ? try_item->handler_off_ : -1; in CatchHandlerIterator()
49 Init(accessor, offset); in CatchHandlerIterator()
58 void CatchHandlerIterator::Init(const CodeItemDataAccessor& accessor, int32_t offset) { in Init() argument
59 if (offset >= 0) { in Init()
60 Init(accessor.GetCatchHandlerData(offset)); in Init()
Dcompact_offset_table.cc39 const uint32_t offset = table_[index / kElementsPerIndex]; in GetOffset() local
42 const uint8_t* block = data_begin_ + offset; in GetOffset()
82 for (const uint32_t offset : offsets) { in Build() local
83 if (offset != 0u) { in Build()
84 *out_min_offset = std::min(*out_min_offset, offset); in Build()
114 const uint32_t offset = offsets[block_start + i]; in Build() local
115 if (offset != 0u) { in Build()
116 uint32_t delta = offset - prev_offset; in Build()
118 prev_offset = offset; in Build()
/art/libartbase/base/unix_file/
Drandom_access_file_utils.cc29 int64_t offset = 0; in CopyFile() local
31 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) { in CopyFile()
32 if (dst->Write(&buf[0], n, offset) != n) { in CopyFile()
35 offset += n; in CopyFile()
Dfd_file.cc70 static ssize_t pread(int fd, void* data, size_t byte_count, off64_t offset) { in pread() argument
81 overlapped.Offset = static_cast<DWORD>(offset); in pread()
82 overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32); in pread()
99 static ssize_t pwrite(int fd, const void* buf, size_t count, off64_t offset) { in pwrite() argument
110 overlapped.Offset = static_cast<DWORD>(offset); in pwrite()
111 overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32); in pwrite()
362 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
364 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read()
366 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read()
388 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument
[all …]
/art/runtime/native/
Dsun_misc_Unsafe.cc41 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument
46 bool success = obj->CasField32<false>(MemberOffset(offset), in Unsafe_compareAndSwapInt()
54 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument
59 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSwapLong()
65 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() argument
78 reinterpret_cast<uint8_t*>(obj.Ptr()) + static_cast<size_t>(offset)); in Unsafe_compareAndSwapObject()
82 MemberOffset(offset), in Unsafe_compareAndSwapObject()
85 bool success = obj->CasFieldObject<false>(MemberOffset(offset), in Unsafe_compareAndSwapObject()
93 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument
96 return obj->GetField32(MemberOffset(offset)); in Unsafe_getInt()
[all …]
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc162 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { in SetInsn32() argument
163 DCHECK_LE(offset + 4u, code->size()); in SetInsn32()
164 DCHECK_ALIGNED(offset, 2u); in SetInsn32()
165 uint8_t* addr = &(*code)[offset]; in SetInsn32()
172 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() argument
173 DCHECK_LE(offset + 4u, code.size()); in GetInsn32()
174 DCHECK_ALIGNED(offset, 2u); in GetInsn32()
175 const uint8_t* addr = &code[offset]; in GetInsn32()
184 uint32_t Thumb2RelativePatcher::GetInsn32(Vector* code, uint32_t offset) { in GetInsn32() argument
186 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); in GetInsn32()
[all …]
Drelative_patcher_arm_base.cc90 uint32_t ReserveOffset(size_t offset) { in ReserveOffset() argument
92 DCHECK_LE(offset, max_next_offset_); in ReserveOffset()
94 offsets_.push_back(offset); in ReserveOffset()
95 return offset + CodeSize(); in ReserveOffset()
130 size_t IndexOfFirstThunkAtOrAfter(uint32_t offset) const { in IndexOfFirstThunkAtOrAfter()
133 if (GetThunkOffset(i) >= offset) { in IndexOfFirstThunkAtOrAfter()
168 uint32_t ArmBaseRelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument
171 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace()
174 uint32_t ArmBaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument
180 ResolveMethodCalls(offset, MethodReference(nullptr, dex::kDexNoIndex)); in ReserveSpaceEnd()
[all …]
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64.cc100 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument
105 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace()
111 offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64) + in ReserveSpace()
127 offset = ReserveSpaceInternal(offset, compiled_method, method_ref, max_extra_space); in ReserveSpace()
129 return offset; in ReserveSpace()
134 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace()
146 return offset; in ReserveSpace()
149 uint32_t Arm64RelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument
156 offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64) + in ReserveSpaceEnd()
161 return ArmBaseRelativePatcher::ReserveSpaceEnd(offset); in ReserveSpaceEnd()
[all …]
/art/libelffile/elf/
Delf_debug_reader.h133 for (size_t offset = 0; offset < debug_frame->sh_size;) { in VisitDebugFrame() local
134 const CFI* entry = Read<CFI>(debug_frame->sh_offset + offset); in VisitDebugFrame()
135 DCHECK_LE(entry->size(), debug_frame->sh_size - offset); in VisitDebugFrame()
137 visit_cie(Read<CIE>(debug_frame->sh_offset + offset)); in VisitDebugFrame()
139 const FDE* fde = Read<FDE>(debug_frame->sh_offset + offset); in VisitDebugFrame()
142 offset += entry->size(); in VisitDebugFrame()
152 const T* Read(size_t offset) { in Read() argument
153 DCHECK_LE(offset + sizeof(T), file_.size()); in Read()
154 return reinterpret_cast<const T*>(file_.data() + offset); in Read()
158 ArrayRef<const T> Read(size_t offset, size_t count) { in Read() argument
[all …]
/art/libelffile/stream/
Dvector_output_stream.cc26 off_t VectorOutputStream::Seek(off_t offset, Whence whence) { in Seek() argument
31 new_offset = offset; in Seek()
35 new_offset = offset_ + offset; in Seek()
39 new_offset = vector_->size() + offset; in Seek()

12345678910>>...12