/art/runtime/interpreter/ |
D | cfi_asm_support.h | 48 #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/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | OffsetTracker.java | 117 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/ |
D | multi_oat_relative_patcher.h | 65 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 …]
|
D | relative_patcher_test.h | 126 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/runtime/arch/arm64/ |
D | asm_support_arm64.S | 47 .macro CFI_EXPRESSION_BREG n, b, offset argument 48 .if (-0x40 <= (\offset)) && ((\offset) < 0x40) 49 CFI_EXPRESSION_BREG_1(\n, \b, \offset) 50 .elseif (-0x2000 <= (\offset)) && ((\offset) < 0x2000) 51 CFI_EXPRESSION_BREG_2(\n, \b, \offset) 57 .macro CFI_DEF_CFA_BREG_PLUS_UCONST reg, offset, size 61 .if (((\offset) < -0x40) || ((\offset) >= 0x40)) 65 CFI_DEF_CFA_BREG_PLUS_UCONST_1_1(\reg, \offset, \size) 67 CFI_DEF_CFA_BREG_PLUS_UCONST_1_2(\reg, \offset, \size) 76 .macro CFI_RESTORE_STATE_AND_DEF_CFA reg, offset argument [all …]
|
/art/compiler/utils/arm/ |
D | assembler_arm_vixl.cc | 135 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/libelffile/dwarf/ |
D | writer.h | 131 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 …]
|
D | debug_frame_opcode_writer.h | 73 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/libartbase/base/ |
D | memory_region.h | 62 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 …]
|
D | hex_dump.cc | 44 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/runtime/native/ |
D | libcore_util_CharsetUtils.cc | 33 static void CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, in CharsetUtils_asciiBytesToChars() argument 44 const jbyte* src = &bytes[offset]; in CharsetUtils_asciiBytesToChars() 54 jint offset, jint length, jcharArray javaChars) { in CharsetUtils_isoLatin1BytesToChars() argument 64 const jbyte* src = &bytes[offset]; in CharsetUtils_isoLatin1BytesToChars() 76 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes() argument 93 memcpy(result->GetData(), string->GetValueCompressed() + offset, length); in charsToBytes() 95 const uint16_t* src = string->GetValue() + offset; in charsToBytes() 104 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes() argument 106 return charsToBytes(env, java_string, offset, length, 0x7f); in CharsetUtils_toAsciiBytes() 110 jint offset, jint length) { in CharsetUtils_toIsoLatin1Bytes() argument [all …]
|
D | jdk_internal_misc_Unsafe.cc | 55 static jboolean Unsafe_compareAndSetInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetInt() argument 60 bool success = obj->CasField32<false>(MemberOffset(offset), in Unsafe_compareAndSetInt() 68 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument 73 return Unsafe_compareAndSetInt(env, obj, javaObj, offset, expectedValue, newValue); in Unsafe_compareAndSwapInt() 76 static jboolean Unsafe_compareAndSetLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetLong() argument 81 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSetLong() 87 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument 92 return Unsafe_compareAndSetLong(env, obj, javaObj, offset, expectedValue, newValue); in Unsafe_compareAndSwapLong() 95 static jboolean Unsafe_compareAndSetObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetObject() argument 108 reinterpret_cast<uint8_t*>(obj.Ptr()) + static_cast<size_t>(offset)); in Unsafe_compareAndSetObject() [all …]
|
D | sun_misc_Unsafe.cc | 41 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/runtime/ |
D | oat.cc | 219 static const void* GetTrampoline(const OatHeader& header, uint32_t offset) { in GetTrampoline() argument 220 return (offset != 0u) ? reinterpret_cast<const uint8_t*>(&header) + offset : nullptr; in GetTrampoline() 232 void OatHeader::SetJniDlsymLookupTrampolineOffset(uint32_t offset) { in SetJniDlsymLookupTrampolineOffset() argument 234 DCHECK_EQ(jni_dlsym_lookup_trampoline_offset_, 0U) << offset; in SetJniDlsymLookupTrampolineOffset() 236 jni_dlsym_lookup_trampoline_offset_ = offset; in SetJniDlsymLookupTrampolineOffset() 248 void OatHeader::SetJniDlsymLookupCriticalTrampolineOffset(uint32_t offset) { in SetJniDlsymLookupCriticalTrampolineOffset() argument 250 DCHECK_EQ(jni_dlsym_lookup_critical_trampoline_offset_, 0U) << offset; in SetJniDlsymLookupCriticalTrampolineOffset() 252 jni_dlsym_lookup_critical_trampoline_offset_ = offset; in SetJniDlsymLookupCriticalTrampolineOffset() 265 void OatHeader::SetQuickGenericJniTrampolineOffset(uint32_t offset) { in SetQuickGenericJniTrampolineOffset() argument 266 CHECK(offset == 0 || offset >= jni_dlsym_lookup_trampoline_offset_); in SetQuickGenericJniTrampolineOffset() [all …]
|
/art/compiler/trampolines/ |
D | trampoline_compiler.cc | 53 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/compiler/utils/arm64/ |
D | assembler_arm64.cc | 111 void Arm64Assembler::SpillRegisters(CPURegList registers, int offset) { in SpillRegisters() argument 117 if (!IsAlignedParam(offset, 2 * size) && registers.GetCount() % 2 != 0) { in SpillRegisters() 119 ___ Str(dst0, MemOperand(sp, offset)); in SpillRegisters() 120 cfi_.RelOffset(DWARFReg(dst0), offset); in SpillRegisters() 121 offset += size; in SpillRegisters() 126 ___ Stp(dst0, dst1, MemOperand(sp, offset)); in SpillRegisters() 127 cfi_.RelOffset(DWARFReg(dst0), offset); in SpillRegisters() 128 cfi_.RelOffset(DWARFReg(dst1), offset + size); in SpillRegisters() 129 offset += 2 * size; in SpillRegisters() 133 ___ Str(dst0, MemOperand(sp, offset)); in SpillRegisters() [all …]
|
/art/dex2oat/linker/x86/ |
D | relative_patcher_x86_base.cc | 25 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/ |
D | Main.java | 21 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/dex2oat/linker/arm/ |
D | relative_patcher_thumb2.cc | 161 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { in SetInsn32() argument 162 DCHECK_LE(offset + 4u, code->size()); in SetInsn32() 163 DCHECK_ALIGNED(offset, 2u); in SetInsn32() 164 uint8_t* addr = &(*code)[offset]; in SetInsn32() 171 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() argument 172 DCHECK_LE(offset + 4u, code.size()); in GetInsn32() 173 DCHECK_ALIGNED(offset, 2u); in GetInsn32() 174 const uint8_t* addr = &code[offset]; in GetInsn32() 183 uint32_t Thumb2RelativePatcher::GetInsn32(Vector* code, uint32_t offset) { in GetInsn32() argument 185 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); in GetInsn32() [all …]
|
D | relative_patcher_arm_base.cc | 90 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/libartbase/base/unix_file/ |
D | fd_file.cc | 70 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 …]
|
D | random_access_file_utils.cc | 29 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()
|
/art/libdexfile/dex/ |
D | dex_file_exception_helpers.cc | 26 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()
|
D | compact_offset_table.cc | 39 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/dex2oat/linker/arm64/ |
D | relative_patcher_arm64.cc | 102 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument 107 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace() 113 offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64) + in ReserveSpace() 129 offset = ReserveSpaceInternal(offset, compiled_method, method_ref, max_extra_space); in ReserveSpace() 131 return offset; in ReserveSpace() 136 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace() 148 return offset; in ReserveSpace() 151 uint32_t Arm64RelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument 158 offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64) + in ReserveSpaceEnd() 163 return ArmBaseRelativePatcher::ReserveSpaceEnd(offset); in ReserveSpaceEnd() [all …]
|