/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/runtime/ |
D | oat.cc | 216 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { in SetInterpreterToInterpreterBridgeOffset() argument 217 CHECK(offset == 0 || offset >= executable_offset_); in SetInterpreterToInterpreterBridgeOffset() 219 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset; in SetInterpreterToInterpreterBridgeOffset() 221 interpreter_to_interpreter_bridge_offset_ = offset; in SetInterpreterToInterpreterBridgeOffset() 222 UpdateChecksum(&interpreter_to_interpreter_bridge_offset_, sizeof(offset)); in SetInterpreterToInterpreterBridgeOffset() 235 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { in SetInterpreterToCompiledCodeBridgeOffset() argument 236 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_); in SetInterpreterToCompiledCodeBridgeOffset() 238 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset; in SetInterpreterToCompiledCodeBridgeOffset() 240 interpreter_to_compiled_code_bridge_offset_ = offset; in SetInterpreterToCompiledCodeBridgeOffset() 241 UpdateChecksum(&interpreter_to_compiled_code_bridge_offset_, sizeof(offset)); in SetInterpreterToCompiledCodeBridgeOffset() [all …]
|
D | memory_region.h | 55 ALWAYS_INLINE T Load(uintptr_t offset) const { in Load() argument 56 T* address = ComputeInternalPointer<T>(offset); in Load() 65 ALWAYS_INLINE void Store(uintptr_t offset, T value) const { in Store() argument 66 T* address = ComputeInternalPointer<T>(offset); in Store() 74 ALWAYS_INLINE T LoadUnaligned(uintptr_t offset) const { in LoadUnaligned() argument 81 *ComputeInternalPointer<uint8_t>(offset + i) << (i * kBitsPerByte); in LoadUnaligned() 89 ALWAYS_INLINE void StoreUnaligned(uintptr_t offset, T value) const { in StoreUnaligned() argument 95 *ComputeInternalPointer<uint8_t>(offset + i) = in StoreUnaligned() 101 ALWAYS_INLINE T* PointerTo(uintptr_t offset) const { in PointerTo() argument 102 return ComputeInternalPointer<T>(offset); in PointerTo() [all …]
|
D | stack_map.cc | 55 size_t offset, in LoadAt() argument 61 uint8_t value = region.LoadUnaligned<uint8_t>(offset); in LoadAt() 68 uint16_t value = region.LoadUnaligned<uint16_t>(offset); in LoadAt() 75 uint16_t low = region.LoadUnaligned<uint16_t>(offset); in LoadAt() 76 uint16_t high = region.LoadUnaligned<uint8_t>(offset + sizeof(uint16_t)); in LoadAt() 85 return region.LoadUnaligned<uint32_t>(offset); in LoadAt() 89 static void StoreAt(MemoryRegion region, size_t number_of_bytes, size_t offset, uint32_t value) { in StoreAt() argument 93 region.StoreUnaligned<uint8_t>(offset, value); in StoreAt() 95 region.StoreUnaligned<uint16_t>(offset, value); in StoreAt() 97 region.StoreUnaligned<uint16_t>(offset, Low16Bits(value)); in StoreAt() [all …]
|
D | oat_file-inl.h | 86 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].gc_map_offset_; in GetGcMap() local 87 if (UNLIKELY(offset == 0u)) { in GetGcMap() 90 return reinterpret_cast<const uint8_t*>(code) - offset; in GetGcMap() 137 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].mapping_table_offset_; in GetMappingTable() local 138 if (UNLIKELY(offset == 0u)) { in GetMappingTable() 141 return reinterpret_cast<const uint8_t*>(code) - offset; in GetMappingTable() 149 uint32_t offset = reinterpret_cast<const OatQuickMethodHeader*>(code)[-1].vmap_table_offset_; in GetVmapTable() local 150 if (UNLIKELY(offset == 0u)) { in GetVmapTable() 153 return reinterpret_cast<const uint8_t*>(code) - offset; in GetVmapTable()
|
/art/compiler/trampolines/ |
D | trampoline_compiler.cc | 33 ThreadOffset<4> offset) { in CreateTrampoline() argument 38 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value()); in CreateTrampoline() 42 __ LoadFromOffset(kLoadWord, PC, IP, offset.Int32Value()); in CreateTrampoline() 45 __ LoadFromOffset(kLoadWord, PC, R9, offset.Int32Value()); in CreateTrampoline() 60 ThreadOffset<8> offset) { in CreateTrampoline() argument 65 __ JumpTo(Arm64ManagedRegister::FromXRegister(X0), Offset(offset.Int32Value()), in CreateTrampoline() 74 __ JumpTo(Arm64ManagedRegister::FromXRegister(IP1), Offset(offset.Int32Value()), in CreateTrampoline() 79 __ JumpTo(Arm64ManagedRegister::FromXRegister(TR), Offset(offset.Int32Value()), in CreateTrampoline() 97 ThreadOffset<4> offset) { in CreateTrampoline() argument 102 __ LoadFromOffset(kLoadWord, T9, A0, offset.Int32Value()); in CreateTrampoline() [all …]
|
/art/compiler/dwarf/ |
D | writer.h | 124 void UpdateUint32(size_t offset, uint32_t value) { in UpdateUint32() argument 125 DCHECK_LT(offset + 3, data_->size()); in UpdateUint32() 126 (*data_)[offset + 0] = (value >> 0) & 0xFF; in UpdateUint32() 127 (*data_)[offset + 1] = (value >> 8) & 0xFF; in UpdateUint32() 128 (*data_)[offset + 2] = (value >> 16) & 0xFF; in UpdateUint32() 129 (*data_)[offset + 3] = (value >> 24) & 0xFF; in UpdateUint32() 132 void UpdateUint64(size_t offset, uint64_t value) { in UpdateUint64() argument 133 DCHECK_LT(offset + 7, data_->size()); in UpdateUint64() 134 (*data_)[offset + 0] = (value >> 0) & 0xFF; in UpdateUint64() 135 (*data_)[offset + 1] = (value >> 8) & 0xFF; in UpdateUint64() [all …]
|
D | debug_frame_opcode_writer.h | 71 void ALWAYS_INLINE RelOffset(Reg reg, int offset) { in RelOffset() argument 72 Offset(reg, offset - current_cfa_offset_); in RelOffset() 81 void ALWAYS_INLINE RelOffsetForMany(Reg reg_base, int offset, in RelOffsetForMany() argument 90 RelOffset(Reg(reg_base.num() + i), offset); in RelOffsetForMany() 91 offset += reg_size; in RelOffsetForMany() 115 void ALWAYS_INLINE Offset(Reg reg, int offset) { in Offset() argument 118 int factored_offset = FactorDataOffset(offset); // May change sign. in Offset() 189 void ALWAYS_INLINE DefCFA(Reg reg, int offset) { in DefCFA() argument 192 if (offset >= 0) { in DefCFA() 195 this->PushUleb128(offset); // Non-factored. in DefCFA() [all …]
|
/art/runtime/native/ |
D | sun_misc_Unsafe.cc | 28 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument 33 bool success = obj->CasFieldStrongSequentiallyConsistent32<false>(MemberOffset(offset), in Unsafe_compareAndSwapInt() 38 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument 43 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSwapLong() 48 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() argument 55 bool success = obj->CasFieldStrongSequentiallyConsistentObject<false>(MemberOffset(offset), in Unsafe_compareAndSwapObject() 60 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument 63 return obj->GetField32(MemberOffset(offset)); in Unsafe_getInt() 66 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() argument 69 return obj->GetField32Volatile(MemberOffset(offset)); in Unsafe_getIntVolatile() [all …]
|
D | java_lang_reflect_Field.cc | 65 MemberOffset offset(f->GetOffset()); in GetFieldValue() local 69 value->SetZ(is_volatile ? o->GetFieldBooleanVolatile(offset) : o->GetFieldBoolean(offset)); in GetFieldValue() 72 value->SetB(is_volatile ? o->GetFieldByteVolatile(offset) : o->GetFieldByte(offset)); in GetFieldValue() 75 value->SetC(is_volatile ? o->GetFieldCharVolatile(offset) : o->GetFieldChar(offset)); in GetFieldValue() 79 value->SetI(is_volatile ? o->GetField32Volatile(offset) : o->GetField32(offset)); in GetFieldValue() 83 value->SetJ(is_volatile ? o->GetField64Volatile(offset) : o->GetField64(offset)); in GetFieldValue() 86 value->SetS(is_volatile ? o->GetFieldShortVolatile(offset) : o->GetFieldShort(offset)); in GetFieldValue() 90 value->SetL(is_volatile ? o->GetFieldObjectVolatile<mirror::Object>(offset) : in GetFieldValue() 91 o->GetFieldObject<mirror::Object>(offset)); in GetFieldValue() 237 MemberOffset offset(f->GetOffset()); in SetFieldValue() local [all …]
|
D | libcore_util_CharsetUtils.cc | 110 static void CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, in CharsetUtils_asciiBytesToChars() argument 121 const jbyte* src = &bytes[offset]; in CharsetUtils_asciiBytesToChars() 131 jint offset, jint length, jcharArray javaChars) { in CharsetUtils_isoLatin1BytesToChars() argument 141 const jbyte* src = &bytes[offset]; in CharsetUtils_isoLatin1BytesToChars() 153 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes() argument 168 const jchar* src = &(string->GetValue()[offset]); in charsToBytes() 181 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes() argument 183 return charsToBytes(env, java_string, offset, length, 0x7f); in CharsetUtils_toAsciiBytes() 187 jint offset, jint length) { in CharsetUtils_toIsoLatin1Bytes() argument 188 return charsToBytes(env, java_string, offset, length, 0xff); in CharsetUtils_toIsoLatin1Bytes() [all …]
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 84 uint32_t offset = kTrampolineSize; in Link() local 87 offset = patcher_->ReserveSpace(offset, compiled_method.get(), compiled_method_refs_[idx]); in Link() 89 uint32_t aligned_offset = compiled_method->AlignCode(offset); in Link() 90 uint32_t aligned_code_delta = aligned_offset - offset; in Link() 91 offset += aligned_code_delta; in Link() 93 offset += sizeof(OatQuickMethodHeader); in Link() 94 uint32_t quick_code_offset = offset + compiled_method->CodeDelta(); in Link() 96 offset += code.size(); in Link() 101 offset = patcher_->ReserveSpaceEnd(offset); in Link() 102 uint32_t output_size = offset; in Link() [all …]
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64.cc | 43 uint32_t Arm64RelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument 48 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace() 54 offset = CompiledMethod::AlignCode(offset, kArm64) + kAdrpThunkSize * num_adrp_thunks; in ReserveSpace() 68 offset = ReserveSpaceInternal(offset, compiled_method, method_ref, kAdrpThunkSize * num_adrp); in ReserveSpace() 70 return offset; in ReserveSpace() 75 uint32_t quick_code_offset = compiled_method->AlignCode(offset) + sizeof(OatQuickMethodHeader); in ReserveSpace() 89 return offset; in ReserveSpace() 92 uint32_t Arm64RelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument 99 offset = CompiledMethod::AlignCode(offset, kArm64) + kAdrpThunkSize * num_adrp_thunks; in ReserveSpaceEnd() 103 return ArmBaseRelativePatcher::ReserveSpaceEnd(offset); in ReserveSpaceEnd() [all …]
|
/art/compiler/linker/arm/ |
D | relative_patcher_arm_base.cc | 26 uint32_t ArmBaseRelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument 29 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace() 32 uint32_t ArmBaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument 37 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); in ReserveSpaceEnd() 42 offset = CompiledMethod::AlignCode(aligned_offset + thunk_code_.size(), instruction_set_); in ReserveSpaceEnd() 44 return offset; in ReserveSpaceEnd() 47 uint32_t ArmBaseRelativePatcher::WriteThunks(OutputStream* out, uint32_t offset) { in WriteThunks() argument 49 return offset; in WriteThunks() 51 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); in WriteThunks() 54 uint32_t aligned_code_delta = aligned_offset - offset; in WriteThunks() [all …]
|
D | relative_patcher_thumb2.cc | 91 void Thumb2RelativePatcher::SetInsn32(std::vector<uint8_t>* code, uint32_t offset, uint32_t value) { in SetInsn32() argument 92 DCHECK_LE(offset + 4u, code->size()); in SetInsn32() 93 DCHECK_EQ(offset & 1u, 0u); in SetInsn32() 94 uint8_t* addr = &(*code)[offset]; in SetInsn32() 101 uint32_t Thumb2RelativePatcher::GetInsn32(ArrayRef<const uint8_t> code, uint32_t offset) { in GetInsn32() argument 102 DCHECK_LE(offset + 4u, code.size()); in GetInsn32() 103 DCHECK_EQ(offset & 1u, 0u); in GetInsn32() 104 const uint8_t* addr = &code[offset]; in GetInsn32() 113 uint32_t Thumb2RelativePatcher::GetInsn32(std::vector<uint8_t, Alloc>* code, uint32_t offset) { in GetInsn32() argument 114 return GetInsn32(ArrayRef<const uint8_t>(*code), offset); in GetInsn32()
|
/art/runtime/base/ |
D | hash_set.h | 153 size_t offset = 0; in HashSet() local 154 offset = ReadFromBytes(ptr, offset, &temp); in HashSet() 156 offset = ReadFromBytes(ptr, offset, &temp); in HashSet() 159 offset = ReadFromBytes(ptr, offset, &temp); in HashSet() 161 offset = ReadFromBytes(ptr, offset, &min_load_factor_); in HashSet() 162 offset = ReadFromBytes(ptr, offset, &max_load_factor_); in HashSet() 165 data_ = const_cast<T*>(reinterpret_cast<const T*>(ptr + offset)); in HashSet() 166 offset += sizeof(*data_) * num_buckets_; in HashSet() 172 offset = ReadFromBytes(ptr, offset, &data_[i]); in HashSet() 176 *read_count = offset; in HashSet() [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/linker/x86/ |
D | relative_patcher_x86_base.cc | 23 uint32_t offset, in ReserveSpace() argument 26 return offset; // No space reserved; no limit on relative call distance. in ReserveSpace() 29 uint32_t X86BaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument 30 return offset; // No space reserved; no limit on relative call distance. in ReserveSpaceEnd() 33 uint32_t X86BaseRelativePatcher::WriteThunks(OutputStream* out ATTRIBUTE_UNUSED, uint32_t offset) { in WriteThunks() argument 34 return offset; // No thunks added; no limit on relative call distance. in WriteThunks()
|
/art/compiler/ |
D | oat_writer.cc | 115 size_t offset; in OatWriter() local 118 offset = InitOatHeader(); in OatWriter() 122 offset = InitOatDexFiles(offset); in OatWriter() 126 offset = InitDexFiles(offset); in OatWriter() 130 offset = InitOatClasses(offset); in OatWriter() 134 offset = InitOatMaps(offset); in OatWriter() 138 offset = InitOatCode(offset); in OatWriter() 142 offset = InitOatCodeDexFiles(offset); in OatWriter() 144 size_ = offset; in OatWriter() 165 uint32_t offset = oat_class->method_headers_[method_offsets_index].gc_map_offset_; in GetOffset() local [all …]
|
/art/disassembler/ |
D | disassembler_mips.cc | 346 int32_t offset = static_cast<int16_t>(instruction & 0xffff); in Dump() local 347 offset <<= 2; in Dump() 348 offset += 4; // Delay slot. in Dump() 349 args << FormatInstructionPointer(instr_ptr + offset) in Dump() 350 << StringPrintf(" ; %+d", offset); in Dump() 355 int32_t offset = (instruction & 0x1fffff) - ((instruction & 0x100000) << 1); in Dump() local 356 offset <<= 2; in Dump() 357 offset += 4; // Delay slot. in Dump() 358 args << FormatInstructionPointer(instr_ptr + offset) in Dump() 359 << StringPrintf(" ; %+d", offset); in Dump() [all …]
|
/art/compiler/dex/quick/ |
D | codegen_util.cc | 200 int offset = lir->offset; in DumpLIRInsn() local 237 LOG(INFO) << reinterpret_cast<uintptr_t>(base_addr) + offset << " (0x" << std::hex in DumpLIRInsn() 238 << offset << "): .align4"; in DumpLIRInsn() 257 LOG(INFO) << "LsafepointPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn() 260 LOG(INFO) << "LexportedPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn() 276 base_addr + offset, in DumpLIRInsn() 321 size_t offset = 0; in UpdateLIROffsets() local 323 lir->offset = offset; in UpdateLIROffsets() 325 offset += GetInsnSize(lir); in UpdateLIROffsets() 327 offset += (offset & 0x2); in UpdateLIROffsets() [all …]
|
/art/compiler/utils/arm/ |
D | assembler_thumb2_test.cc | 252 int32_t offset = 4092; in TEST_F() local 253 ASSERT_TRUE(arm::Address::CanHoldStoreOffsetThumb(type, offset)); in TEST_F() 255 __ StoreToOffset(type, arm::R0, arm::SP, offset); in TEST_F() 256 __ StoreToOffset(type, arm::IP, arm::SP, offset); in TEST_F() 257 __ StoreToOffset(type, arm::IP, arm::R5, offset); in TEST_F() 268 int32_t offset = 4096; in TEST_F() local 269 ASSERT_FALSE(arm::Address::CanHoldStoreOffsetThumb(type, offset)); in TEST_F() 271 __ StoreToOffset(type, arm::R0, arm::SP, offset); in TEST_F() 272 __ StoreToOffset(type, arm::IP, arm::SP, offset); in TEST_F() 273 __ StoreToOffset(type, arm::IP, arm::R5, offset); in TEST_F() [all …]
|
/art/runtime/base/unix_file/ |
D | random_access_file_utils.cc | 27 int64_t offset = 0; in CopyFile() local 29 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) { in CopyFile() 30 if (dst->Write(&buf[0], n, offset) != n) { in CopyFile() 33 offset += n; in CopyFile()
|
D | fd_file.cc | 138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() 140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() 142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read() 163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write() 167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write() 181 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { in ReadIgnoreOffset() argument 182 DCHECK_EQ(offset, 0); in ReadIgnoreOffset() 187 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { in ReadFullyGeneric() argument 190 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); in ReadFullyGeneric() [all …]
|
/art/compiler/utils/arm64/ |
D | assembler_arm64.cc | 57 void Arm64Assembler::GetCurrentThread(FrameOffset offset, ManagedRegister /* scratch */) { in GetCurrentThread() argument 58 StoreToOffset(ETR, SP, offset.Int32Value()); in GetCurrentThread() 96 XRegister base, int32_t offset) { in StoreWToOffset() argument 99 ___ Strb(reg_w(source), MEM_OP(reg_x(base), offset)); in StoreWToOffset() 102 ___ Strh(reg_w(source), MEM_OP(reg_x(base), offset)); in StoreWToOffset() 105 ___ Str(reg_w(source), MEM_OP(reg_x(base), offset)); in StoreWToOffset() 112 void Arm64Assembler::StoreToOffset(XRegister source, XRegister base, int32_t offset) { in StoreToOffset() argument 114 ___ Str(reg_x(source), MEM_OP(reg_x(base), offset)); in StoreToOffset() 117 void Arm64Assembler::StoreSToOffset(SRegister source, XRegister base, int32_t offset) { in StoreSToOffset() argument 118 ___ Str(reg_s(source), MEM_OP(reg_x(base), offset)); in StoreSToOffset() [all …]
|