/art/runtime/base/unix_file/ |
H A D | random_access_file_utils.cc | 27 int64_t offset = 0; local 29 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) { 30 if (dst->Write(&buf[0], n, offset) != n) { 33 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/compiler/linker/ |
H A D | multi_oat_relative_patcher.h | 48 // The adjustment should be the global offset of the base from which relative 51 // with value 0 because this value is used as a missing offset indication in 56 // Get relative offset. Returns 0 when the offset has not been set yet. 62 // Set the offset. 63 void SetOffset(MethodReference method_ref, uint32_t offset) { argument 64 method_offset_map_.map.Put(method_ref, offset + adjustment_); 67 // Wrapper around RelativePatcher::ReserveSpace(), doing offset adjustment. 68 uint32_t ReserveSpace(uint32_t offset, argument 71 offset 78 ReserveSpaceEnd(uint32_t offset) argument 86 WriteThunks(OutputStream* out, uint32_t offset) argument [all...] |
H A D | vector_output_stream.cc | 26 off_t VectorOutputStream::Seek(off_t offset, Whence whence) { argument 31 new_offset = offset; 35 new_offset = offset_ + offset; 39 new_offset = vector_->size() + offset;
|
H A D | file_output_stream.cc | 32 off_t FileOutputStream::Seek(off_t offset, Whence whence) { argument 33 return lseek(file_->Fd(), offset, static_cast<int>(whence));
|
/art/compiler/linker/x86/ |
H A D | relative_patcher_x86_base.cc | 23 uint32_t offset, 26 return offset; // No space reserved; no limit on relative call distance. 29 uint32_t X86BaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { argument 30 return offset; // No space reserved; no limit on relative call distance. 33 uint32_t X86BaseRelativePatcher::WriteThunks(OutputStream* out ATTRIBUTE_UNUSED, uint32_t offset) { argument 34 return offset; // No thunks added; no limit on relative call distance. 22 ReserveSpace( uint32_t offset, const CompiledMethod* compiled_method ATTRIBUTE_UNUSED, MethodReference method_ref ATTRIBUTE_UNUSED) argument
|
H A D | relative_patcher_x86_base.h | 27 uint32_t ReserveSpace(uint32_t offset, 30 uint32_t ReserveSpaceEnd(uint32_t offset) OVERRIDE; 31 uint32_t WriteThunks(OutputStream* out, uint32_t offset) OVERRIDE;
|
/art/runtime/ |
H A D | memory_region.cc | 27 void MemoryRegion::CopyFrom(size_t offset, const MemoryRegion& from) const { argument 31 CHECK_LE(offset, this->size() - from.size()); 32 memmove(reinterpret_cast<void*>(start() + offset),
|
/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/runtime/interpreter/mterp/mips/ |
H A D | op_iget_quick.S | 3 # op vA, vB, offset /* CCCC */ 6 FETCH(a1, 1) # a1 <- field byte offset
|
H A D | op_iget_wide_quick.S | 1 # iget-wide-quick vA, vB, offset /* CCCC */ 4 FETCH(a1, 1) # a1 <- field byte offset
|
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/runtime/interpreter/mterp/mips64/ |
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. 10 seb rINST, rINST # rINST <- offset (sign-extended AA) 16 jal MterpProfileBranch # (self, shadow_frame, offset) 17 bnezc v0, MterpOnStackReplacement # Note: offset must be in rINST 19 dlsa rPC, rINST, rPC, 1 # rPC <- rPC + offset * 2 21 move a0, rINST # a0 <- offset
|
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. 9 lh rINST, 2(rPC) # rINST <- offset (sign-extended AAAA) 15 jal MterpProfileBranch # (self, shadow_frame, offset) 16 bnezc v0, MterpOnStackReplacement # Note: offset must be in rINST 18 dlsa rPC, rINST, rPC, 1 # rPC <- rPC + offset * 2 20 move a0, rINST # a0 <- offset
|
H A D | bincmp.S | 12 lh rINST, 2(rPC) # rINST <- offset (sign-extended CCCC) 16 li rINST, 2 # offset if branch not taken 23 jal MterpProfileBranch # (self, shadow_frame, offset) 24 bnezc v0, MterpOnStackReplacement # Note: offset must be in rINST 26 dlsa rPC, rINST, rPC, 1 # rPC <- rPC + offset * 2 28 move a0, rINST # a0 <- offset
|
H A D | zcmp.S | 11 lh rINST, 2(rPC) # rINST <- offset (sign-extended BBBB) 14 li rINST, 2 # offset if branch not taken 21 jal MterpProfileBranch # (self, shadow_frame, offset) 22 bnezc v0, MterpOnStackReplacement # Note: offset must be in rINST 24 dlsa rPC, rINST, rPC, 1 # rPC <- rPC + offset * 2 26 move a0, rINST # a0 <- offset
|
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/runtime/native/ |
H A D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 28 jbyteArray javaData, jint offset, jint length) { 31 DCHECK_LE(offset + length, static_cast<int32_t>(data.size())); 32 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset])); 27 DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, jbyteArray javaData, jint offset, jint length) argument
|
/art/runtime/lambda/ |
H A D | closure.cc | 31 const uint8_t* Closure::GetUnsafeAtOffset(size_t offset) const { 33 return reinterpret_cast<const uint8_t*>(captured_) + offset; 36 size_t Closure::GetCapturedVariableSize(ShortyFieldType variable_type, size_t offset) const { 40 return GetClosureSize(GetUnsafeAtOffset<Closure>(offset)); 58 size_t offset = (flags & VariableInfo::kOffset) ? GetStartingOffset() : 0; local 67 // Accumulate the sizes of all preceding captured variables as the current offset only. 68 offset += prev_offset; 69 prev_offset = GetCapturedVariableSize(last_type, offset); 90 result.offset_ = offset; 205 size_t offset; local 251 size_t offset; local 282 size_t offset; local 314 size_t offset = GetCapturedVariableOffset(index); local 324 size_t offset = GetCapturedVariableOffset(index); local 340 size_t offset = variable_info.offset_; local 358 size_t offset = variable_info.offset_; local 365 CopyUnsafeAtOffset(size_t offset, void* destination, size_t src_size, size_t destination_room) const argument [all...] |
/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/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;
|