Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 175) sorted by relevance

1234567

/art/runtime/
Doat.cc185 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { in SetInterpreterToInterpreterBridgeOffset() argument
186 CHECK(offset == 0 || offset >= executable_offset_); in SetInterpreterToInterpreterBridgeOffset()
188 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset; in SetInterpreterToInterpreterBridgeOffset()
190 interpreter_to_interpreter_bridge_offset_ = offset; in SetInterpreterToInterpreterBridgeOffset()
191 UpdateChecksum(&interpreter_to_interpreter_bridge_offset_, sizeof(offset)); in SetInterpreterToInterpreterBridgeOffset()
204 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { in SetInterpreterToCompiledCodeBridgeOffset() argument
205 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_); in SetInterpreterToCompiledCodeBridgeOffset()
207 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset; in SetInterpreterToCompiledCodeBridgeOffset()
209 interpreter_to_compiled_code_bridge_offset_ = offset; in SetInterpreterToCompiledCodeBridgeOffset()
210 UpdateChecksum(&interpreter_to_compiled_code_bridge_offset_, sizeof(offset)); in SetInterpreterToCompiledCodeBridgeOffset()
[all …]
Dmemory_region.h47 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()
77 void CopyFrom(size_t offset, const MemoryRegion& from) const;
80 MemoryRegion Subregion(uintptr_t offset, uintptr_t size) const { in Subregion() argument
82 CHECK_LE(offset, this->size() - size); in Subregion()
83 return MemoryRegion(reinterpret_cast<void*>(start() + offset), size); in Subregion()
[all …]
Doat.h60 void SetInterpreterToInterpreterBridgeOffset(uint32_t offset);
63 void SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset);
67 void SetJniDlsymLookupOffset(uint32_t offset);
71 void SetPortableResolutionTrampolineOffset(uint32_t offset);
74 void SetPortableImtConflictTrampolineOffset(uint32_t offset);
77 void SetPortableToInterpreterBridgeOffset(uint32_t offset);
81 void SetQuickGenericJniTrampolineOffset(uint32_t offset);
84 void SetQuickResolutionTrampolineOffset(uint32_t offset);
87 void SetQuickImtConflictTrampolineOffset(uint32_t offset);
90 void SetQuickToInterpreterBridgeOffset(uint32_t offset);
Doat_file-inl.h86 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()
Ddex_file_verifier.h51 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, const char* label);
63 bool CheckPadding(size_t offset, uint32_t aligned_offset);
75 bool CheckIntraSectionIterate(size_t offset, uint32_t count, uint16_t type);
76 bool CheckIntraIdSection(size_t offset, uint32_t count, uint16_t type);
77 bool CheckIntraDataSection(size_t offset, uint32_t count, uint16_t type);
80 bool CheckOffsetToTypeMap(size_t offset, uint16_t type);
98 bool CheckInterSectionIterate(size_t offset, uint32_t count, uint16_t type);
/art/runtime/native/
Dsun_misc_Unsafe.cc26 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument
31 bool success = obj->CasFieldStrongSequentiallyConsistent32<false>(MemberOffset(offset), in Unsafe_compareAndSwapInt()
36 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument
41 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSwapLong()
46 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() argument
53 bool success = obj->CasFieldStrongSequentiallyConsistentObject<false>(MemberOffset(offset), in Unsafe_compareAndSwapObject()
58 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument
61 return obj->GetField32(MemberOffset(offset)); in Unsafe_getInt()
64 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() argument
67 return obj->GetField32Volatile(MemberOffset(offset)); in Unsafe_getIntVolatile()
[all …]
/art/compiler/trampolines/
Dtrampoline_compiler.cc32 ThreadOffset<4> offset) { in CreateTrampoline() argument
37 __ LoadFromOffset(kLoadWord, PC, R0, offset.Int32Value()); in CreateTrampoline()
41 __ 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::FromCoreRegister(X0), Offset(offset.Int32Value()), in CreateTrampoline()
74 __ JumpTo(Arm64ManagedRegister::FromCoreRegister(IP1), Offset(offset.Int32Value()), in CreateTrampoline()
80 __ JumpTo(Arm64ManagedRegister::FromCoreRegister(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/
Delf_stripper.cc100 Elf32_Off offset = elf_file->GetSectionHeader(1)->sh_offset; in Strip() local
107 offset = RoundUp(offset, old_sh->sh_addralign); in Strip()
109 if (old_sh->sh_offset == offset) { in Strip()
111 offset += old_sh->sh_size; in Strip()
115 memmove(elf_file->Begin() + offset, in Strip()
118 new_sh.sh_offset = offset; in Strip()
119 offset += old_sh->sh_size; in Strip()
122 Elf32_Off shoff = offset; in Strip()
124 memcpy(elf_file->Begin() + offset, &section_headers[0], section_headers_size_in_bytes); in Strip()
125 offset += section_headers_size_in_bytes; in Strip()
[all …]
Doat_writer.cc97 size_t offset; in OatWriter() local
100 offset = InitOatHeader(); in OatWriter()
104 offset = InitOatDexFiles(offset); in OatWriter()
108 offset = InitDexFiles(offset); in OatWriter()
112 offset = InitOatClasses(offset); in OatWriter()
116 offset = InitOatMaps(offset); in OatWriter()
120 offset = InitOatCode(offset); in OatWriter()
124 offset = InitOatCodeDexFiles(offset); in OatWriter()
126 size_ = offset; in OatWriter()
146 uint32_t offset = oat_class->method_headers_[method_offsets_index].gc_map_offset_; in GetOffset() local
[all …]
Dvector_output_stream.cc26 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()
/art/runtime/base/unix_file/
Dstring_file.cc38 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()
Dmapped_file.cc112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
114 if (offset < 0) { in Read()
119 std::min(byte_count, file_size_ - offset)); in Read()
121 memcpy(buf, data() + offset, read_size); in Read()
125 return FdFile::Read(buf, byte_count, offset); in Read()
148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument
151 if (offset < 0) { in Write()
156 std::min(byte_count, file_size_ - offset)); in Write()
158 memcpy(data() + offset, buf, write_size); in Write()
163 return FdFile::Write(buf, byte_count, offset); in Write()
Drandom_access_file_utils.cc27 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()
Dnull_file.cc36 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/
Dcodegen_util.cc190 int offset = lir->offset; in DumpLIRInsn() local
222 LOG(INFO) << reinterpret_cast<uintptr_t>(base_addr) + offset << " (0x" << std::hex in DumpLIRInsn()
223 << offset << "): .align4"; in DumpLIRInsn()
242 LOG(INFO) << "LsafepointPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn()
245 LOG(INFO) << "LexportedPC_0x" << std::hex << lir->offset << "_" << lir->dalvik_offset << ":"; in DumpLIRInsn()
261 base_addr + offset, in DumpLIRInsn()
304 size_t offset = 0; in UpdateLIROffsets() local
306 lir->offset = offset; in UpdateLIROffsets()
308 offset += GetInsnSize(lir); in UpdateLIROffsets()
310 offset += (offset & 0x2); in UpdateLIROffsets()
[all …]
/art/runtime/base/
Dhex_dump.cc44 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/dex/quick/mips/
Dassemble_mips.cc541 int offset1 = (reinterpret_cast<LIR*>(UnwrapPointer(lir->operands[2])))->offset; in AssembleInstructions()
543 int offset2 = tab_rec ? tab_rec->offset : lir->target->offset; in AssembleInstructions()
568 int offset1 = (reinterpret_cast<LIR*>(UnwrapPointer(lir->operands[2])))->offset; in AssembleInstructions()
570 int offset2 = tab_rec ? tab_rec->offset : lir->target->offset; in AssembleInstructions()
574 int offset1 = (reinterpret_cast<LIR*>(UnwrapPointer(lir->operands[2])))->offset; in AssembleInstructions()
576 int offset2 = tab_rec ? tab_rec->offset : lir->target->offset; in AssembleInstructions()
581 CodeOffset pc = lir->offset + 4; in AssembleInstructions()
582 CodeOffset target = target_lir->offset; in AssembleInstructions()
595 CodeOffset pc = lir->offset + 4; in AssembleInstructions()
596 CodeOffset target = target_lir->offset; in AssembleInstructions()
[all …]
/art/compiler/llvm/
Dir_builder.h135 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/runtime/gc/accounting/
Dspace_bitmap_test.cc127 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); in RunTest() local
131 space_bitmap->Set(reinterpret_cast<mirror::Object*>(heap_begin + offset)); in RunTest()
133 space_bitmap->Clear(reinterpret_cast<mirror::Object*>(heap_begin + offset)); in RunTest()
141 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); in RunTest() local
142 size_t remain = heap_capacity - offset; in RunTest()
143 size_t end = offset + RoundDown(r.next() % (remain + 1), kAlignment); in RunTest()
145 space_bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(heap_begin) + offset, in RunTest()
149 for (uintptr_t k = offset; k < end; k += kAlignment) { in RunTest()
Dcard_table.cc76 size_t offset = 0; in Create() local
82 offset = delta + (delta < 0 ? 0x100 : 0); in Create()
83 biased_begin += offset; in Create()
86 return new CardTable(mem_map.release(), biased_begin, offset); in Create()
89 CardTable::CardTable(MemMap* mem_map, byte* biased_begin, size_t offset) in CardTable() argument
90 : mem_map_(mem_map), biased_begin_(biased_begin), offset_(offset) { in CardTable()
Dspace_bitmap-inl.h36 const uintptr_t offset = addr - heap_begin_; in AtomicTestAndSet() local
37 const size_t index = OffsetToIndex(offset); in AtomicTestAndSet()
38 const uword mask = OffsetToMask(offset); in AtomicTestAndSet()
60 const uintptr_t offset = addr - heap_begin_; in Test() local
61 return (bitmap_begin_[OffsetToIndex(offset)] & OffsetToMask(offset)) != 0; in Test()
162 const uintptr_t offset = addr - heap_begin_; in Modify() local
163 const size_t index = OffsetToIndex(offset); in Modify()
164 const uword mask = OffsetToMask(offset); in Modify()
/art/compiler/utils/arm64/
Dassembler_arm64.cc56 void Arm64Assembler::GetCurrentThread(FrameOffset offset, ManagedRegister /* scratch */) { in GetCurrentThread() argument
57 StoreToOffset(ETR, SP, offset.Int32Value()); in GetCurrentThread()
93 Register base, int32_t offset) { in StoreWToOffset() argument
96 ___ Strb(reg_w(source), MEM_OP(reg_x(base), offset)); in StoreWToOffset()
99 ___ Strh(reg_w(source), MEM_OP(reg_x(base), offset)); in StoreWToOffset()
102 ___ Str(reg_w(source), MEM_OP(reg_x(base), offset)); in StoreWToOffset()
109 void Arm64Assembler::StoreToOffset(Register source, Register base, int32_t offset) { in StoreToOffset() argument
111 ___ Str(reg_x(source), MEM_OP(reg_x(base), offset)); in StoreToOffset()
114 void Arm64Assembler::StoreSToOffset(SRegister source, Register base, int32_t offset) { in StoreSToOffset() argument
115 ___ Str(reg_s(source), MEM_OP(reg_x(base), offset)); in StoreSToOffset()
[all …]
/art/compiler/utils/arm/
Dassembler_arm.cc221 int32_t offset = offset_; in encodingThumb() local
222 if (offset < 0) { in encodingThumb()
224 offset = -offset; in encodingThumb()
226 if (offset_ < 0 || (offset >= 0 && offset < 256 && in encodingThumb()
235 encoding |= B11 | PUW << 8 | offset; in encodingThumb()
291 uint32_t offset = encoding & offset_mask; in encoding3() local
292 CHECK_LT(offset, 256u); in encoding3()
293 return (encoding & ~offset_mask) | ((offset & 0xf0) << 4) | (offset & 0xf); in encoding3()
300 uint32_t offset = encoding & offset_mask; in vencoding() local
301 CHECK(IsAbsoluteUint(10, offset)); // In the range -1020 to +1020. in vencoding()
[all …]
Dassembler_thumb2.cc1172 int32_t offset = target_ - location_; in Emit() local
1183 CHECK_EQ((offset & 1), 0); in Emit()
1200 encoding = Thumb2Assembler::EncodeBranchOffset(offset, encoding); in Emit()
1205 offset -= 4; in Emit()
1206 uint16_t i = (offset >> 6) & 1; in Emit()
1207 uint16_t imm5 = (offset >> 1) & 0b11111; in Emit()
1216 offset -= 4; // Account for PC offset. in Emit()
1221 ((offset >> 1) & 0x7ff); in Emit()
1224 cond_ << 8 | ((offset >> 1) & 0xff); in Emit()
1269 int32_t offset = ad.GetOffset(); in EmitLoadStore() local
[all …]
/art/compiler/utils/mips/
Dassembler_mips.cc93 int offset; in EmitBranch() local
95 offset = label->Position() - buffer_.Size(); in EmitBranch()
98 offset = label->position_; in EmitBranch()
102 Beq(rt, rs, (offset >> 2) & kBranchOffsetMask); in EmitBranch()
104 Bne(rt, rs, (offset >> 2) & kBranchOffsetMask); in EmitBranch()
109 int offset; in EmitJump() local
111 offset = label->Position() - buffer_.Size(); in EmitJump()
114 offset = label->position_; in EmitJump()
118 Jal((offset >> 2) & kJumpOffsetMask); in EmitJump()
120 J((offset >> 2) & kJumpOffsetMask); in EmitJump()
[all …]

1234567