/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/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/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/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/runtime/ |
D | oat.cc | 201 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/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/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/compiler/utils/arm64/ |
D | assembler_arm64.cc | 107 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/libartbase/base/unix_file/ |
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()
|
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 …]
|
/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/runtime/native/ |
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/dex2oat/linker/arm/ |
D | relative_patcher_thumb2.cc | 162 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 …]
|
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/dex2oat/linker/arm64/ |
D | relative_patcher_arm64.cc | 100 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/stream/ |
D | vector_output_stream.cc | 26 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()
|
D | error_delaying_output_stream.h | 53 off_t Seek(off_t offset, Whence whence) override { in Seek() argument 59 new_offset = offset; in Seek() 62 new_offset = output_offset_ + offset; in Seek() 69 off_t actual_offset = output_->Seek(offset, whence); in Seek() 71 PLOG(ERROR) << "Failed to seek in " << GetLocation() << ". Offset=" << offset in Seek()
|
/art/libelffile/elf/ |
D | elf_debug_reader.h | 133 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/runtime/arch/arm64/ |
D | asm_support_arm64.S | 96 .macro SAVE_REG reg, offset argument 97 str \reg, [sp, #(\offset)] 98 .cfi_rel_offset \reg, (\offset) 101 .macro RESTORE_REG reg, offset argument 102 ldr \reg, [sp, #(\offset)] 106 .macro SAVE_TWO_REGS_BASE base, reg1, reg2, offset argument 107 stp \reg1, \reg2, [\base, #(\offset)] 108 .cfi_rel_offset \reg1, (\offset) 109 .cfi_rel_offset \reg2, (\offset) + 8 112 .macro SAVE_TWO_REGS reg1, reg2, offset argument [all …]
|