/art/libartbase/base/unix_file/ |
H A D | random_access_file_utils.cc | 29 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 D | random_access_file.h | 29 // 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 D | op_goto_16.S | 2 * 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 D | op_goto.S | 2 * 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 D | op_iget_object_quick.S | 2 /* op vA, vB, offset//CCCC */ 5 lhu a1, 2(rPC) # a1 <- field byte offset 8 jal artIGetObjectFromMterp # (obj, offset)
|
H A D | op_iget_quick.S | 3 /* op vA, vB, offset//CCCC */ 5 lhu a1, 2(rPC) # a1 <- field byte offset
|
H A D | op_iget_wide_quick.S | 1 /* iget-wide-quick vA, vB, offset//CCCC */ 3 lhu a4, 2(rPC) # a4 <- field byte offset
|
/art/dex2oat/linker/ |
H A D | multi_oat_relative_patcher.h | 47 // 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 D | relative_patcher_x86_base.cc | 25 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 D | OffsetTracker.java | 29 * 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 D | assembler_arm_vixl.cc | 138 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 D | dex_file_exception_helpers.cc | 25 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 D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 32 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 D | vector_output_stream.cc | 27 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 D | file_output_stream.cc | 33 off_t FileOutputStream::Seek(off_t offset, Whence whence) { argument 34 return lseek(file_->Fd(), offset, static_cast<int>(whence));
|
H A D | relative_patcher_test.h | 105 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 D | error_delaying_output_stream.h | 44 << " 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 D | op_iget_object_quick.S | 2 /* op vA, vB, offset@CCCC */ 4 FETCH r1, 1 @ r1<- field byte offset 7 bl artIGetObjectFromMterp @ (obj, offset)
|
H A D | op_iget_quick.S | 3 /* op vA, vB, offset@CCCC */ 5 FETCH r1, 1 @ r1<- field byte offset
|
H A D | op_iget_wide_quick.S | 1 /* iget-wide-quick vA, vB, offset@CCCC */ 3 FETCH ip, 1 @ ip<- field byte offset
|
/art/runtime/interpreter/mterp/mips/ |
H A D | op_iget_object_quick.S | 2 /* 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 D | hex_dump.cc | 38 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 D | trampoline_compiler.cc | 60 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 D | debug_frame_opcode_writer.h | 73 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 D | oat.cc | 136 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...] |