/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 | 127 uint32_t offset = kTrampolineSize; in Link() local 130 offset = patcher_->ReserveSpace(offset, compiled_method.get(), compiled_method_refs_[idx]); in Link() 132 uint32_t alignment_size = CodeAlignmentSize(offset); in Link() 133 offset += alignment_size; in Link() 135 offset += sizeof(OatQuickMethodHeader); in Link() 136 uint32_t quick_code_offset = offset + compiled_method->CodeDelta(); in Link() 138 offset += code.size(); in Link() 143 offset = patcher_->ReserveSpaceEnd(offset); in Link() 144 uint32_t output_size = offset; in Link() 152 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/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() 83 void ALWAYS_INLINE RelOffsetForMany(Reg reg_base, int offset, in RelOffsetForMany() argument 92 RelOffset(Reg(reg_base.num() + i), offset); in RelOffsetForMany() 93 offset += reg_size; in RelOffsetForMany() 117 void ALWAYS_INLINE Offset(Reg reg, int offset) { in Offset() argument 120 int factored_offset = FactorDataOffset(offset); // May change sign. in Offset() 191 void ALWAYS_INLINE DefCFA(Reg reg, int offset) { in DefCFA() argument 194 if (offset >= 0) { in DefCFA() 197 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/compiler/trampolines/ |
D | trampoline_compiler.cc | 61 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) { in CreateTrampoline() argument 69 ___ Ldr(pc, MemOperand(r0, offset.Int32Value())); in CreateTrampoline() 78 ___ Ldr(pc, MemOperand(temp_reg, offset.Int32Value())); in CreateTrampoline() 82 ___ Ldr(pc, MemOperand(tr, offset.Int32Value())); in CreateTrampoline() 102 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) { in CreateTrampoline() argument 107 __ JumpTo(Arm64ManagedRegister::FromXRegister(X0), Offset(offset.Int32Value()), in CreateTrampoline() 116 __ JumpTo(Arm64ManagedRegister::FromXRegister(IP1), Offset(offset.Int32Value()), in CreateTrampoline() 121 __ JumpTo(Arm64ManagedRegister::FromXRegister(TR), Offset(offset.Int32Value()), in CreateTrampoline() 141 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) { in CreateTrampoline() argument 146 __ LoadFromOffset(kLoadWord, T9, A0, offset.Int32Value()); in CreateTrampoline() [all …]
|
/art/runtime/ |
D | oat.cc | 199 static const void* GetTrampoline(const OatHeader& header, uint32_t offset) { in GetTrampoline() argument 200 return (offset != 0u) ? reinterpret_cast<const uint8_t*>(&header) + offset : nullptr; in GetTrampoline() 212 void OatHeader::SetJniDlsymLookupOffset(uint32_t offset) { in SetJniDlsymLookupOffset() argument 214 DCHECK_EQ(jni_dlsym_lookup_offset_, 0U) << offset; in SetJniDlsymLookupOffset() 216 jni_dlsym_lookup_offset_ = offset; in SetJniDlsymLookupOffset() 229 void OatHeader::SetQuickGenericJniTrampolineOffset(uint32_t offset) { in SetQuickGenericJniTrampolineOffset() argument 230 CHECK(offset == 0 || offset >= jni_dlsym_lookup_offset_); in SetQuickGenericJniTrampolineOffset() 232 DCHECK_EQ(quick_generic_jni_trampoline_offset_, 0U) << offset; in SetQuickGenericJniTrampolineOffset() 234 quick_generic_jni_trampoline_offset_ = offset; in SetQuickGenericJniTrampolineOffset() 247 void OatHeader::SetQuickImtConflictTrampolineOffset(uint32_t offset) { in SetQuickImtConflictTrampolineOffset() argument [all …]
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2.cc | 145 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { in SetInsn32() argument 146 DCHECK_LE(offset + 4u, code->size()); in SetInsn32() 147 DCHECK_ALIGNED(offset, 2u); in SetInsn32() 148 uint8_t* addr = &(*code)[offset]; in SetInsn32() 155 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() argument 156 DCHECK_LE(offset + 4u, code.size()); in GetInsn32() 157 DCHECK_ALIGNED(offset, 2u); in GetInsn32() 158 const uint8_t* addr = &code[offset]; in GetInsn32() 167 uint32_t Thumb2RelativePatcher::GetInsn32(Vector* code, uint32_t offset) { in GetInsn32() argument 169 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/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/compiler/utils/arm64/ |
D | assembler_arm64.cc | 115 void Arm64Assembler::SpillRegisters(CPURegList registers, int offset) { in SpillRegisters() argument 121 if (!IsAlignedParam(offset, 2 * size) && registers.GetCount() % 2 != 0) { in SpillRegisters() 123 ___ Str(dst0, MemOperand(sp, offset)); in SpillRegisters() 124 cfi_.RelOffset(DWARFReg(dst0), offset); in SpillRegisters() 125 offset += size; in SpillRegisters() 130 ___ Stp(dst0, dst1, MemOperand(sp, offset)); in SpillRegisters() 131 cfi_.RelOffset(DWARFReg(dst0), offset); in SpillRegisters() 132 cfi_.RelOffset(DWARFReg(dst1), offset + size); in SpillRegisters() 133 offset += 2 * size; in SpillRegisters() 137 ___ Str(dst0, MemOperand(sp, offset)); in SpillRegisters() [all …]
|
/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 …]
|
D | libcore_util_CharsetUtils.cc | 114 static void CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, in CharsetUtils_asciiBytesToChars() argument 125 const jbyte* src = &bytes[offset]; in CharsetUtils_asciiBytesToChars() 135 jint offset, jint length, jcharArray javaChars) { in CharsetUtils_isoLatin1BytesToChars() argument 145 const jbyte* src = &bytes[offset]; in CharsetUtils_isoLatin1BytesToChars() 157 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes() argument 174 jchar ch = string->CharAt(offset + i); in charsToBytes() 184 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes() argument 186 return charsToBytes(env, java_string, offset, length, 0x7f); in CharsetUtils_toAsciiBytes() 190 jint offset, jint length) { in CharsetUtils_toIsoLatin1Bytes() argument 191 return charsToBytes(env, java_string, offset, length, 0xff); in CharsetUtils_toIsoLatin1Bytes() [all …]
|
/art/disassembler/ |
D | disassembler_mips.cc | 545 int32_t offset = static_cast<int16_t>(instruction & 0xffff); in Dump() local 546 offset <<= 2; in Dump() 547 offset += 4; // Delay slot. in Dump() 548 args << FormatInstructionPointer(instr_ptr + offset) in Dump() 549 << StringPrintf(" ; %+d", offset); in Dump() 554 int32_t offset = (instruction & 0x1fffff) - ((instruction & 0x100000) << 1); in Dump() local 555 offset <<= 2; in Dump() 556 offset += 4; // Delay slot. in Dump() 557 args << FormatInstructionPointer(instr_ptr + offset) in Dump() 558 << StringPrintf(" ; %+d", offset); in Dump() [all …]
|
/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/arm64/ |
D | relative_patcher_arm64.cc | 99 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument 104 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace() 110 offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64) + in ReserveSpace() 126 offset = ReserveSpaceInternal(offset, compiled_method, method_ref, max_extra_space); in ReserveSpace() 128 return offset; in ReserveSpace() 133 uint32_t quick_code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpace() 145 return offset; in ReserveSpace() 148 uint32_t Arm64RelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument 155 offset = CompiledMethod::AlignCode(offset, InstructionSet::kArm64) + in ReserveSpaceEnd() 160 return ArmBaseRelativePatcher::ReserveSpaceEnd(offset); in ReserveSpaceEnd() [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/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/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/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatArrayInstance.java | 274 String asString(int offset, int count, int maxChars) { in asString() argument 287 int end = offset + count - 1; in asString() 288 if (offset >= 0 && offset < numChars && end >= 0 && end < numChars) { in asString() 289 return new String(mCharArray, offset, count); in asString() 298 String asAsciiString(int offset, int count, int maxChars) { in asAsciiString() argument 311 int end = offset + count - 1; in asAsciiString() 312 if (offset >= 0 && offset < numChars && end >= 0 && end < numChars) { in asAsciiString() 313 return new String(mByteArray, offset, count, StandardCharsets.US_ASCII); in asAsciiString() 322 String asMaybeCompressedString(int offset, int count, int maxChars) { in asMaybeCompressedString() argument 323 String str = asString(offset, count, maxChars); in asMaybeCompressedString() [all …]
|