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

1234567891011

/art/runtime/base/unix_file/
H A Drandom_access_file_utils.cc27 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 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/compiler/linker/
H A Dmulti_oat_relative_patcher.h48 // 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 Dvector_output_stream.cc26 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 Dfile_output_stream.cc32 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 Drelative_patcher_x86_base.cc23 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 Drelative_patcher_x86_base.h27 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 Dmemory_region.cc27 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 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/runtime/interpreter/mterp/mips/
H A Dop_iget_quick.S3 # op vA, vB, offset /* CCCC */
6 FETCH(a1, 1) # a1 <- field byte offset
H A Dop_iget_wide_quick.S1 # iget-wide-quick vA, vB, offset /* CCCC */
4 FETCH(a1, 1) # a1 <- field byte offset
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/runtime/interpreter/mterp/mips64/
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.
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 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.
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 Dbincmp.S12 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 Dzcmp.S11 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 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/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc28 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 Dclosure.cc31 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 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/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;

Completed in 404 milliseconds

1234567891011