Searched refs:offset (Results 1 - 25 of 313) sorted by relevance

1234567891011>>

/art/libartbase/base/unix_file/
H A Drandom_access_file_utils.cc29 int64_t offset = 0; local
31 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) {
32 if (dst->Write(&buf[0], n, offset) != n) {
35 offset += n;
H A Drandom_access_file.h29 // must specify an offset). This interface does not imply any buffering policy.
43 // Reads 'byte_count' bytes into 'buf' starting at offset 'offset' in the
45 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const = 0;
56 // Writes 'byte_count' bytes from 'buf' starting at offset 'offset' in the
60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
/art/runtime/interpreter/mterp/mips64/
H A Dop_goto_16.S2 * Unconditional branch, 16-bit offset.
4 * The branch distance is a signed code-unit offset, which we need to
5 * double to get a byte offset.
8 lh rINST, 2(rPC) # rINST <- offset (sign-extended AAAA)
H A Dop_goto.S2 * Unconditional branch, 8-bit offset.
4 * The branch distance is a signed code-unit offset, which we need to
5 * double to get a byte offset.
9 seb rINST, rINST # rINST <- offset (sign-extended AA)
H A Dop_iget_object_quick.S2 /* op vA, vB, offset//CCCC */
5 lhu a1, 2(rPC) # a1 <- field byte offset
8 jal artIGetObjectFromMterp # (obj, offset)
H A Dop_iget_quick.S3 /* op vA, vB, offset//CCCC */
5 lhu a1, 2(rPC) # a1 <- field byte offset
H A Dop_iget_wide_quick.S1 /* iget-wide-quick vA, vB, offset//CCCC */
3 lhu a4, 2(rPC) # a4 <- field byte offset
/art/dex2oat/linker/
H A Dmulti_oat_relative_patcher.h47 // The adjustment should be the global offset of the base from which relative
50 // with value 0 because this value is used as a missing offset indication in
55 // Get relative offset. Returns 0 when the offset has not been set yet.
61 // Set the offset.
62 void SetOffset(MethodReference method_ref, uint32_t offset) { argument
63 method_offset_map_.map.Put(method_ref, offset + adjustment_);
66 // Wrapper around RelativePatcher::ReserveSpace(), doing offset adjustment.
67 uint32_t ReserveSpace(uint32_t offset, argument
70 offset
77 ReserveSpaceEnd(uint32_t offset) argument
85 WriteThunks(OutputStream* out, uint32_t offset) argument
[all...]
/art/compiler/linker/x86/
H A Drelative_patcher_x86_base.cc25 uint32_t offset,
28 return offset; // No space reserved; no limit on relative call distance.
31 uint32_t X86BaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { argument
32 return offset; // No space reserved; no limit on relative call distance.
35 uint32_t X86BaseRelativePatcher::WriteThunks(OutputStream* out ATTRIBUTE_UNUSED, uint32_t offset) { argument
36 return offset; // No thunks added; no limit on relative call distance.
24 ReserveSpace( uint32_t offset, const CompiledMethod* compiled_method ATTRIBUTE_UNUSED, MethodReference method_ref ATTRIBUTE_UNUSED) argument
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DOffsetTracker.java29 * referred to by an offset somewhere else in the file - RawDexObjects) and Offsets.
49 * A map from the original offset in the input DEX file to
51 * the actual item, and later on the new offset for the item when
72 * A table of all offsets that we could not write out an updated offset for
74 * to allow specific patching of each offset's location as at that point
113 * Lookup an Item by the offset it had in the input DEX file.
114 * @param offset The offset in the input DEX file.
117 public RawDexObject getItemByOffset(int offset) { argument
118 return offsettableMap.get(offset)
204 tryToWriteOffset(Offset offset, DexRandomAccessFile file, boolean useUleb128) argument
291 updateHeaderOffsetIfValid(Offset offset, Offsettable previousFirst, Offsettable newFirst, String offsetName) argument
[all...]
/art/compiler/utils/arm/
H A Dassembler_arm_vixl.cc138 int32_t offset,
141 int32_t other_bits = offset & ~allowed_offset_bits;
143 *add_to_base = offset & ~allowed_offset_bits;
144 *offset_for_load_store = offset & allowed_offset_bits;
153 int32_t offset) {
154 DCHECK_NE(offset & ~allowed_offset_bits, 0);
156 if (CanSplitLoadStoreOffset(allowed_offset_bits, offset, &add_to_base, &offset_for_load)) {
160 ___ Mov(temp, offset);
174 // We can encode imm12 offset.
179 // We can encode imm8:'00' offset
137 CanSplitLoadStoreOffset(int32_t allowed_offset_bits, int32_t offset, int32_t* add_to_base, int32_t* offset_for_load_store) argument
150 AdjustLoadStoreOffset(int32_t allowed_offset_bits, vixl32::Register temp, vixl32::Register base, int32_t offset) argument
207 CanHoldLoadOffsetThumb(LoadOperandType type, int offset) argument
227 CanHoldStoreOffsetThumb(StoreOperandType type, int offset) argument
247 StoreToOffset(StoreOperandType type, vixl32::Register reg, vixl32::Register base, int32_t offset) argument
305 LoadFromOffset(LoadOperandType type, vixl32::Register dest, vixl32::Register base, int32_t offset) argument
359 StoreSToOffset(vixl32::SRegister source, vixl32::Register base, int32_t offset) argument
365 StoreDToOffset(vixl32::DRegister source, vixl32::Register base, int32_t offset) argument
371 LoadSFromOffset(vixl32::SRegister reg, vixl32::Register base, int32_t offset) argument
377 LoadDFromOffset(vixl32::DRegister reg, vixl32::Register base, int32_t offset) argument
[all...]
/art/libdexfile/dex/
H A Ddex_file_exception_helpers.cc25 int32_t offset = -1; local
37 offset = tries->handler_off_;
44 offset = try_item != nullptr ? try_item->handler_off_ : -1;
48 Init(accessor, offset);
57 void CatchHandlerIterator::Init(const CodeItemDataAccessor& accessor, int32_t offset) { argument
58 if (offset >= 0) {
59 Init(accessor.GetCatchHandlerData(offset));
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc32 jbyteArray javaData, jint offset, jint length) {
35 DCHECK_LE(offset + length, static_cast<int32_t>(data.size()));
36 ArrayRef<const uint8_t> chunk(reinterpret_cast<const uint8_t*>(&data[offset]),
31 DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, jbyteArray javaData, jint offset, jint length) argument
/art/compiler/linker/
H A Dvector_output_stream.cc27 off_t VectorOutputStream::Seek(off_t offset, Whence whence) { argument
32 new_offset = offset;
36 new_offset = offset_ + offset;
40 new_offset = vector_->size() + offset;
H A Dfile_output_stream.cc33 off_t FileOutputStream::Seek(off_t offset, Whence whence) { argument
34 return lseek(file_->Fd(), offset, static_cast<int>(whence));
H A Drelative_patcher_test.h105 static_assert(kTrampolineOffset == 0u, "Unexpected trampoline offset.");
106 uint32_t offset = kTrampolineSize; local
109 offset = patcher_->ReserveSpace(offset, compiled_method.get(), compiled_method_refs_[idx]);
111 uint32_t alignment_size = CodeAlignmentSize(offset);
112 offset += alignment_size;
114 offset += sizeof(OatQuickMethodHeader);
115 uint32_t quick_code_offset = offset + compiled_method->CodeDelta();
117 offset += code.size();
122 offset
204 size_t offset = result.second - compiled_methods_[idx]->CodeDelta(); local
[all...]
H A Derror_delaying_output_stream.h44 << " bytes to " << GetLocation() << " at offset " << output_offset_;
54 off_t Seek(off_t offset, Whence whence) OVERRIDE {
55 // We keep shadow copy of the offset so that we return
60 new_offset = offset;
63 new_offset = output_offset_ + offset;
70 off_t actual_offset = output_->Seek(offset, whence);
72 PLOG(ERROR) << "Failed to seek in " << GetLocation() << ". Offset=" << offset
/art/runtime/interpreter/mterp/arm/
H A Dop_iget_object_quick.S2 /* op vA, vB, offset@CCCC */
4 FETCH r1, 1 @ r1<- field byte offset
7 bl artIGetObjectFromMterp @ (obj, offset)
H A Dop_iget_quick.S3 /* op vA, vB, offset@CCCC */
5 FETCH r1, 1 @ r1<- field byte offset
H A Dop_iget_wide_quick.S1 /* iget-wide-quick vA, vB, offset@CCCC */
3 FETCH ip, 1 @ ip<- field byte offset
/art/runtime/interpreter/mterp/mips/
H A Dop_iget_object_quick.S2 /* op vA, vB, offset@CCCC */
4 FETCH(a1, 1) # a1 <- field byte offset
7 JAL(artIGetObjectFromMterp) # v0 <- GetObj(obj, offset)
/art/libartbase/base/
H A Dhex_dump.cc38 char out[(kBitsPerIntPtrT / 4) + /* offset */
44 size_t offset; /* offset to show while printing */ local
47 offset = reinterpret_cast<size_t>(addr);
49 offset = 0;
56 size_t gap = offset & 0x0f;
58 size_t line_offset = offset & ~0x0f;
61 char* asc = out + (kBitsPerIntPtrT / 4) + /* offset */ 1 + /* colon */
105 offset += count;
/art/compiler/trampolines/
H A Dtrampoline_compiler.cc60 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) {
68 ___ Ldr(pc, MemOperand(r0, offset.Int32Value()));
75 // the offset is not encodable as an immediate operand.
77 ___ Ldr(pc, MemOperand(temp_reg, offset.Int32Value()));
81 ___ Ldr(pc, MemOperand(tr, offset.Int32Value()));
101 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) {
106 __ JumpTo(Arm64ManagedRegister::FromXRegister(X0), Offset(offset.Int32Value()),
115 __ JumpTo(Arm64ManagedRegister::FromXRegister(IP1), Offset(offset.Int32Value()),
120 __ JumpTo(Arm64ManagedRegister::FromXRegister(TR), Offset(offset.Int32Value()),
140 ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) {
59 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) argument
100 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) argument
139 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset32 offset) argument
171 CreateTrampoline( ArenaAllocator* allocator, EntryPointCallingConvention abi, ThreadOffset64 offset) argument
203 CreateTrampoline(ArenaAllocator* allocator, ThreadOffset32 offset) argument
224 CreateTrampoline(ArenaAllocator* allocator, ThreadOffset64 offset) argument
243 CreateTrampoline64(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset64 offset) argument
269 CreateTrampoline32(InstructionSet isa, EntryPointCallingConvention abi, ThreadOffset32 offset) argument
[all...]
/art/compiler/debug/dwarf/
H A Ddebug_frame_opcode_writer.h73 void ALWAYS_INLINE RelOffset(Reg reg, int offset) { argument
74 Offset(reg, offset - current_cfa_offset_);
83 void ALWAYS_INLINE RelOffsetForMany(Reg reg_base, int offset, argument
92 RelOffset(Reg(reg_base.num() + i), offset); local
93 offset += reg_size;
117 void ALWAYS_INLINE Offset(Reg reg, int offset) { argument
120 int factored_offset = FactorDataOffset(offset); // May change sign.
191 void ALWAYS_INLINE DefCFA(Reg reg, int offset) { argument
194 if (offset >= 0) {
197 this->PushUleb128(offset); // No
216 DefCFAOffset(int offset) argument
234 ValOffset(Reg reg, int offset) argument
296 SetCurrentCFAOffset(int offset) argument
[all...]
/art/runtime/
H A Doat.cc136 return "Executable offset not page-aligned.";
249 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { argument
250 CHECK(offset == 0 || offset >= executable_offset_);
252 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset;
254 interpreter_to_interpreter_bridge_offset_ = offset;
267 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { argument
268 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_);
270 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset;
285 SetJniDlsymLookupOffset(uint32_t offset) argument
303 SetQuickGenericJniTrampolineOffset(uint32_t offset) argument
321 SetQuickImtConflictTrampolineOffset(uint32_t offset) argument
339 SetQuickResolutionTrampolineOffset(uint32_t offset) argument
357 SetQuickToInterpreterBridgeOffset(uint32_t offset) argument
[all...]

Completed in 4433 milliseconds

1234567891011>>