/art/runtime/ |
D | oat.cc | 127 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { in SetInterpreterToInterpreterBridgeOffset() argument 128 CHECK(offset == 0 || offset >= executable_offset_); in SetInterpreterToInterpreterBridgeOffset() 130 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset; in SetInterpreterToInterpreterBridgeOffset() 132 interpreter_to_interpreter_bridge_offset_ = offset; in SetInterpreterToInterpreterBridgeOffset() 133 UpdateChecksum(&interpreter_to_interpreter_bridge_offset_, sizeof(offset)); in SetInterpreterToInterpreterBridgeOffset() 146 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { in SetInterpreterToCompiledCodeBridgeOffset() argument 147 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_); in SetInterpreterToCompiledCodeBridgeOffset() 149 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset; in SetInterpreterToCompiledCodeBridgeOffset() 151 interpreter_to_compiled_code_bridge_offset_ = offset; in SetInterpreterToCompiledCodeBridgeOffset() 152 UpdateChecksum(&interpreter_to_compiled_code_bridge_offset_, sizeof(offset)); in SetInterpreterToCompiledCodeBridgeOffset() [all …]
|
D | memory_region.h | 47 template<typename T> T Load(uintptr_t offset) const { in Load() argument 48 return *ComputeInternalPointer<T>(offset); in Load() 51 template<typename T> void Store(uintptr_t offset, T value) const { in Store() argument 52 *ComputeInternalPointer<T>(offset) = value; in Store() 55 template<typename T> T* PointerTo(uintptr_t offset) const { in PointerTo() argument 56 return ComputeInternalPointer<T>(offset); in PointerTo() 59 void CopyFrom(size_t offset, const MemoryRegion& from) const; 62 void Subregion(const MemoryRegion& from, uintptr_t offset, uintptr_t size) { in Subregion() argument 64 CHECK_LE(offset, from.size() - size); in Subregion() 65 pointer_ = reinterpret_cast<void*>(from.start() + offset); in Subregion() [all …]
|
D | oat.h | 53 void SetInterpreterToInterpreterBridgeOffset(uint32_t offset); 56 void SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset); 60 void SetJniDlsymLookupOffset(uint32_t offset); 64 void SetPortableResolutionTrampolineOffset(uint32_t offset); 67 void SetPortableToInterpreterBridgeOffset(uint32_t offset); 71 void SetQuickResolutionTrampolineOffset(uint32_t offset); 74 void SetQuickToInterpreterBridgeOffset(uint32_t offset);
|
D | dex_file_verifier.h | 50 bool CheckPadding(uint32_t offset, uint32_t aligned_offset); 62 bool CheckIntraSectionIterate(uint32_t offset, uint32_t count, uint16_t type); 63 bool CheckIntraIdSection(uint32_t offset, uint32_t count, uint16_t type); 64 bool CheckIntraDataSection(uint32_t offset, uint32_t count, uint16_t type); 67 bool CheckOffsetToTypeMap(uint32_t offset, uint16_t type); 82 bool CheckInterSectionIterate(uint32_t offset, uint32_t count, uint16_t type);
|
D | memory_region.cc | 27 void MemoryRegion::CopyFrom(size_t offset, const MemoryRegion& from) const { in CopyFrom() argument 31 CHECK_LE(offset, this->size() - from.size()); in CopyFrom() 32 memmove(reinterpret_cast<void*>(start() + offset), in CopyFrom()
|
D | disassembler_mips.cc | 197 int32_t offset = static_cast<int16_t>(instruction & 0xffff); in DumpMips() local 198 offset <<= 2; in DumpMips() 199 offset += 4; // Delay slot. in DumpMips() 200 args << StringPrintf("%p ; %+d", instr_ptr + offset, offset); in DumpMips() 236 int32_t offset = static_cast<int16_t>(instruction & 0xffff); in DumpMips() local 237 args << StringPrintf("%+d(r%d)", offset, rs); in DumpMips() 240 Thread::DumpThreadOffset(args, offset, 4); in DumpMips()
|
/art/runtime/native/ |
D | sun_misc_Unsafe.cc | 26 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint … in Unsafe_compareAndSwapInt() argument 29 byte* raw_addr = reinterpret_cast<byte*>(obj) + offset; in Unsafe_compareAndSwapInt() 36 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, jlon… in Unsafe_compareAndSwapLong() argument 39 byte* raw_addr = reinterpret_cast<byte*>(obj) + offset; in Unsafe_compareAndSwapLong() 46 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, jo… in Unsafe_compareAndSwapObject() argument 51 byte* raw_addr = reinterpret_cast<byte*>(obj) + offset; in Unsafe_compareAndSwapObject() 57 Runtime::Current()->GetHeap()->WriteBarrierField(obj, MemberOffset(offset), newValue); in Unsafe_compareAndSwapObject() 62 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument 65 return obj->GetField32(MemberOffset(offset), false); in Unsafe_getInt() 68 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() argument [all …]
|
D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 25 jbyteArray javaData, jint offset, jint length) { in DdmServer_nativeSendChunk() argument 28 DCHECK_LE(offset + length, static_cast<int32_t>(data.size())); in DdmServer_nativeSendChunk() 29 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset])); in DdmServer_nativeSendChunk()
|
/art/compiler/trampolines/ |
D | trampoline_compiler.cc | 30 ThreadOffset offset) { in CreateTrampoline() argument 35 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value()); in CreateTrampoline() 39 __ LoadFromOffset(kLoadWord, PC, IP, offset.Int32Value()); in CreateTrampoline() 43 __ LoadFromOffset(kLoadWord, PC, R9, offset.Int32Value()); in CreateTrampoline() 58 ThreadOffset offset) { in CreateTrampoline() argument 63 __ LoadFromOffset(kLoadWord, T9, A0, offset.Int32Value()); in CreateTrampoline() 67 __ LoadFromOffset(kLoadWord, T9, T9, offset.Int32Value()); in CreateTrampoline() 71 __ LoadFromOffset(kLoadWord, T9, S1, offset.Int32Value()); in CreateTrampoline() 87 static const std::vector<uint8_t>* CreateTrampoline(ThreadOffset offset) { in CreateTrampoline() argument 91 __ fs()->jmp(Address::Absolute(offset)); in CreateTrampoline() [all …]
|
/art/compiler/ |
D | elf_stripper.cc | 93 llvm::ELF::Elf32_Off offset = elf_file->GetSectionHeader(1).sh_offset; in Strip() local 99 offset = RoundUp(offset, old_sh.sh_addralign); in Strip() 101 if (old_sh.sh_offset == offset) { in Strip() 103 offset += old_sh.sh_size; in Strip() 107 memmove(elf_file->Begin() + offset, in Strip() 110 new_sh.sh_offset = offset; in Strip() 111 offset += old_sh.sh_size; in Strip() 114 llvm::ELF::Elf32_Off shoff = offset; in Strip() 116 memcpy(elf_file->Begin() + offset, §ion_headers[0], section_headers_size_in_bytes); in Strip() 117 offset += section_headers_size_in_bytes; in Strip() [all …]
|
D | oat_writer.cc | 75 size_t offset = InitOatHeader(); in OatWriter() local 76 offset = InitOatDexFiles(offset); in OatWriter() 77 offset = InitDexFiles(offset); in OatWriter() 78 offset = InitOatClasses(offset); in OatWriter() 79 offset = InitOatCode(offset); in OatWriter() 80 offset = InitOatCodeDexFiles(offset); in OatWriter() 81 size_ = offset; in OatWriter() 100 size_t offset = sizeof(*oat_header_); in InitOatHeader() local 101 offset += image_file_location_.size(); in InitOatHeader() 102 return offset; in InitOatHeader() [all …]
|
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 | oat_writer.h | 85 size_t InitOatDexFiles(size_t offset); 86 size_t InitDexFiles(size_t offset); 87 size_t InitOatClasses(size_t offset); 88 size_t InitOatCode(size_t offset) 90 size_t InitOatCodeDexFiles(size_t offset) 92 size_t InitOatCodeDexFile(size_t offset, 96 size_t InitOatCodeClassDef(size_t offset, 101 size_t InitOatCodeMethod(size_t offset, size_t oat_class_index, size_t class_def_index, 123 explicit OatDexFile(size_t offset, const DexFile& dex_file); 145 explicit OatClass(size_t offset, mirror::Class::Status status, uint32_t methods_count);
|
D | compiled_method.cc | 49 uint32_t CompiledCode::AlignCode(uint32_t offset) const { in AlignCode() 50 return AlignCode(offset, instruction_set_); in AlignCode() 53 uint32_t CompiledCode::AlignCode(uint32_t offset, InstructionSet instruction_set) { in AlignCode() argument 57 return RoundUp(offset, kArmAlignment); in AlignCode() 59 return RoundUp(offset, kMipsAlignment); in AlignCode() 61 return RoundUp(offset, kX86Alignment); in AlignCode() 114 void CompiledCode::AddOatdataOffsetToCompliledCodeOffset(uint32_t offset) { in AddOatdataOffsetToCompliledCodeOffset() argument 115 oatdata_offsets_to_compiled_code_offset_.push_back(offset); in AddOatdataOffsetToCompliledCodeOffset()
|
D | image_writer.h | 73 void SetImageOffset(mirror::Object* object, size_t offset) { in SetImageOffset() argument 75 DCHECK_NE(offset, 0U); in SetImageOffset() 77 offsets_.Put(object, offset); in SetImageOffset() 99 size_t offset = GetImageOffset(object); in GetLocalAddress() local 100 byte* dst = image_->Begin() + offset; in GetLocalAddress() 104 const byte* GetOatAddress(uint32_t offset) const { in GetOatAddress() argument 109 DCHECK_LT(offset, oat_file_->Size()); in GetOatAddress() 111 if (offset == 0) { in GetOatAddress() 114 return oat_data_begin_ + offset; in GetOatAddress()
|
/art/runtime/base/unix_file/ |
D | string_file.cc | 38 int64_t StringFile::Read(char *buf, int64_t byte_count, int64_t offset) const { in Read() 42 if (offset < 0) { in Read() 46 const int64_t available_bytes = std::min(byte_count, GetLength() - offset); in Read() 50 memcpy(buf, data_.data() + offset, available_bytes); in Read() 66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) { in Write() argument 70 if (offset < 0) { in Write() 81 const int64_t bytes_past_end = offset - GetLength(); in Write() 86 data_.replace(offset, byte_count, buf, byte_count); in Write()
|
D | mapped_file.cc | 98 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() 100 if (offset < 0) { in Read() 104 int64_t read_size = std::max(0LL, std::min(byte_count, file_size_ - offset)); in Read() 106 memcpy(buf, data() + offset, read_size); in Read() 110 return FdFile::Read(buf, byte_count, offset); in Read() 132 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 135 if (offset < 0) { in Write() 139 int64_t write_size = std::max(0LL, std::min(byte_count, file_size_ - offset)); in Write() 141 memcpy(data() + offset, buf, write_size); in Write() 145 return FdFile::Write(buf, byte_count, offset); in Write()
|
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 | null_file.cc | 36 int64_t NullFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() 37 if (offset < 0) { in Read() 54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 55 if (offset < 0) { in Write()
|
/art/compiler/dex/quick/ |
D | codegen_util.cc | 117 int offset = lir->offset; in DumpLIRInsn() local 147 LOG(INFO) << reinterpret_cast<uintptr_t>(base_addr) + offset << " (0x" << std::hex in DumpLIRInsn() 148 << offset << "): .align4"; in DumpLIRInsn() 167 LOG(INFO) << "LsafepointPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn() 170 LOG(INFO) << "LexportedPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn() 186 reinterpret_cast<unsigned int>(base_addr + offset), in DumpLIRInsn() 267 LOG(INFO) << StringPrintf("%x (%04x): .word (%#x)", lir_insn->offset, lir_insn->offset, in CodegenDump() 346 static void AlignBuffer(std::vector<uint8_t>&buf, size_t offset) { in AlignBuffer() argument 347 while (buf.size() < offset) { in AlignBuffer() 401 AlignBuffer(code_buffer_, tab_rec->offset); in InstallSwitchTables() [all …]
|
/art/runtime/gc/accounting/ |
D | space_bitmap-inl.h | 31 const uintptr_t offset = addr - heap_begin_; in AtomicTestAndSet() local 32 const size_t index = OffsetToIndex(offset); in AtomicTestAndSet() 33 const word mask = OffsetToMask(offset); in AtomicTestAndSet() 52 const uintptr_t offset = addr - heap_begin_; in Test() local 53 return (bitmap_begin_[OffsetToIndex(offset)] & OffsetToMask(offset)) != 0; in Test() 123 const uintptr_t offset = addr - heap_begin_; in Modify() local 124 const size_t index = OffsetToIndex(offset); in Modify() 125 const word mask = OffsetToMask(offset); in Modify()
|
D | card_table.cc | 69 size_t offset = 0; in Create() local 74 offset = delta + (delta < 0 ? 0x100 : 0); in Create() 75 biased_begin += offset; in Create() 79 return new CardTable(mem_map.release(), biased_begin, offset); in Create() 82 CardTable::CardTable(MemMap* mem_map, byte* biased_begin, size_t offset) in CardTable() argument 83 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) { in CardTable()
|
/art/jdwpspy/ |
D | Main.cpp | 38 unsigned int offset; /* offset to show while printing */ in printHexDumpEx() local 44 offset = 0; in printHexDumpEx() 46 offset = (int) addr; in printHexDumpEx() 53 gap = (int) offset & 0x0f; in printHexDumpEx() 55 unsigned int lineOffset = offset & ~0x0f; in printHexDumpEx() 99 offset += count; in printHexDumpEx()
|
/art/compiler/llvm/ |
D | ir_builder.h | 135 int64_t offset, in LoadFromObjectOffset() argument 138 return LoadFromObjectOffset(object_addr, offset, type, mdb_.GetTBAASpecialType(special_ty)); in LoadFromObjectOffset() 142 int64_t offset, in StoreToObjectOffset() argument 146 StoreToObjectOffset(object_addr, offset, new_value, mdb_.GetTBAASpecialType(special_ty)); in StoreToObjectOffset() 150 int64_t offset, in LoadFromObjectOffset() argument 153 … return LoadFromObjectOffset(object_addr, offset, type, mdb_.GetTBAAMemoryJType(special_ty, j_ty)); in LoadFromObjectOffset() 157 int64_t offset, in StoreToObjectOffset() argument 161 StoreToObjectOffset(object_addr, offset, new_value, mdb_.GetTBAAMemoryJType(special_ty, j_ty)); in StoreToObjectOffset() 166 int64_t offset, in CompareExchangeObjectOffset() argument 171 return CompareExchangeObjectOffset(object_addr, offset, cmp_value, new_value, in CompareExchangeObjectOffset() [all …]
|
/art/compiler/utils/mips/ |
D | assembler_mips.cc | 105 int offset; in EmitBranch() local 107 offset = label->Position() - buffer_.Size(); in EmitBranch() 110 offset = label->position_; in EmitBranch() 114 Beq(rt, rs, (offset >> 2) & kBranchOffsetMask); in EmitBranch() 116 Bne(rt, rs, (offset >> 2) & kBranchOffsetMask); in EmitBranch() 121 int offset; in EmitJump() local 123 offset = label->Position() - buffer_.Size(); in EmitJump() 126 offset = label->position_; in EmitJump() 130 Jal((offset >> 2) & kJumpOffsetMask); in EmitJump() 132 J((offset >> 2) & kJumpOffsetMask); in EmitJump() [all …]
|