Searched refs:offset (Results 1 - 25 of 262) sorted by last modified time

1234567891011

/art/test/MyClassNatives/
H A DMyClassNatives.java34 native boolean compareAndSwapInt(Object obj, long offset, int expected, int newval); argument
/art/tools/ahat/src/
H A DInstanceUtils.java81 // field of the string object. The field accesses for count and offset
108 int offset = getIntField(inst, "offset", 0);
109 int end = offset + count - 1;
110 if (offset >= 0 && offset < numChars && end >= 0 && end < numChars) {
111 return new String(chars.asCharArray(offset, count));
/art/tools/dexfuzz/src/dexfuzz/program/
H A DMutatableCode.java101 * locations adjusted by the provided offset. It will also mark that they have been updated.
103 public void updateInstructionLocationsAfter(MInsn mInsn, int offset) { argument
108 mInsnChecking.location += offset;
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DDexRandomAccessFile.java299 long offset = getFilePointer();
301 if ((offset & mask) != 0) {
302 int extra = alignment - (int) (offset & mask);
303 seek(offset + extra);
312 long offset = getFilePointer();
314 if ((offset & mask) != 0) {
315 offset &= (~mask);
316 seek(offset);
H A DInstruction.java117 // Remember the offset, so after reading the opcode, we can read the whole
119 long offset = file.getFilePointer();
128 file.seek(offset);
H A DMapItem.java43 public Offset offset; field in class:MapItem
51 offset = file.getOffsetTracker().getNewHeaderOffset(file.readUInt());
53 offset = file.getOffsetTracker().getNewOffset(file.readUInt());
62 file.getOffsetTracker().tryToWriteOffset(offset, file, false /* ULEB128 */);
H A DMapList.java63 file.seek(mapItem.offset.getOriginalOffset());
165 int start = mapItem.offset.getOriginalOffset();
166 int end = mapItems.get(mapItemIdx + 1).offset.getOriginalOffset();
H A DOffset.java23 * The absolute value of this offset as it was originally read.
169 * Get the location in the output DEX file where this offset has been written.
180 public void setOriginalOffset(int offset) { argument
181 originalOffset = offset;
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/tools/dmtracedump/
H A Dtracedump.cc522 * Find the offset to the next occurrence of the specified character.
590 int64_t parseVersion(DataKeys* pKeys, int64_t offset, int32_t verbose) { argument
591 if (offset < 0) return -1;
593 char* data = pKeys->fileData + offset;
634 int64_t parseThreads(DataKeys* pKeys, int64_t offset) { argument
635 if (offset < 0) return -1;
637 char* data = pKeys->fileData + offset;
680 int64_t parseMethods(DataKeys* pKeys, int64_t offset) { argument
681 if (offset < 0) return -1;
683 char* data = pKeys->fileData + offset;
779 parseEnd(DataKeys* pKeys, int64_t offset) argument
823 int64_t offset; local
[all...]
/art/cmdline/
H A Dtoken_range.h98 // Non-copying constructor. Retains reference to an existing list of tokens, with offset.
163 // Look up a token by it's offset.
164 const std::string& GetToken(size_t offset) const {
165 assert(offset < Size());
166 return *(begin_ + offset);
241 TokenRange Slice(size_t offset, size_t length = std::string::npos) const {
242 assert(offset < Size());
244 if (length != std::string::npos && offset + length > Size()) {
245 length = Size() - offset;
252 it_end = begin() + offset
[all...]
/art/compiler/
H A Dcommon_compiler_test.cc79 size_t offset = dchecked_integral_cast<size_t>(reinterpret_cast<uintptr_t>(unaligned_code_ptr)); local
80 size_t padding = compiled_method->AlignCode(offset) - offset;
H A Dcompiled_method.cc49 size_t CompiledCode::AlignCode(size_t offset) const {
50 return AlignCode(offset, instruction_set_);
53 size_t CompiledCode::AlignCode(size_t offset, InstructionSet instruction_set) { argument
54 return RoundUp(offset, GetInstructionSetAlignment(instruction_set));
H A Dcompiled_method.h54 // To align an offset from a page-aligned value to make it suitable
57 size_t AlignCode(size_t offset) const;
58 static size_t AlignCode(size_t offset, InstructionSet instruction_set);
331 uint32_t element_offset_; // Element offset in the dex cache arrays.
341 // Literal offset of the insn loading PC (same as literal_offset if it's the same insn,
435 // For quick code, a set of pairs (PC, DEX) mapping from native PC offset to DEX offset.
H A Delf_builder.h206 off_t Seek(off_t offset, Whence whence) OVERRIDE {
208 return owner_->stream_.Seek(offset, whence);
252 Elf_Word offset = cache_.size(); local
255 return offset;
324 Elf_Word offset = current_offset_; local
327 return offset;
/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...]
H A Ddebug_info_entry_writer.h52 // Returns offset of the entry in compilation unit.
127 void WriteSecOffset(Attribute attrib, uint32_t offset) { argument
129 this->PushUint32(offset);
H A Ddebug_line_opcode_writer.h239 uint64_t FactorCodeOffset(uint64_t offset) const {
241 DCHECK_EQ((offset >> code_factor_bits_) << code_factor_bits_, offset);
242 return offset >> code_factor_bits_;
H A Ddwarf_test.cc37 // Pick offset value which would catch Uleb vs Sleb errors.
38 const int offset = 40000; local
39 ASSERT_EQ(UnsignedLeb128Size(offset / 4), 2u);
40 ASSERT_EQ(SignedLeb128Size(offset / 4), 3u);
60 opcodes.DefCFA(reg, offset);
62 opcodes.DefCFA(reg, -offset);
66 opcodes.DefCFAOffset(offset);
68 opcodes.DefCFAOffset(-offset);
77 opcodes.Offset(Reg(0x3F), -offset);
81 opcodes.Offset(Reg(0x40), -offset);
[all...]
H A Dexpression.h93 void WriteOpPlusUconst(uint32_t offset) { argument
95 PushUleb128(offset);
H A Dwriter.h129 void UpdateUint32(size_t offset, uint32_t value) { argument
130 DCHECK_LT(offset + 3, data_->size());
131 (*data_)[offset + 0] = (value >> 0) & 0xFF;
132 (*data_)[offset + 1] = (value >> 8) & 0xFF;
133 (*data_)[offset + 2] = (value >> 16) & 0xFF;
134 (*data_)[offset + 3] = (value >> 24) & 0xFF;
137 void UpdateUint64(size_t offset, uint64_t value) { argument
138 DCHECK_LT(offset + 7, data_->size());
139 (*data_)[offset + 0] = (value >> 0) & 0xFF;
140 (*data_)[offset
149 UpdateUleb128(size_t offset, uint32_t value) argument
[all...]
/art/compiler/debug/
H A Delf_debug_info_writer.h271 const size_t offset = owner_->builder_->GetDebugInfo()->GetSize(); local
274 WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_);
354 // Add offset to the methods_ field.
436 const size_t offset = owner_->builder_->GetDebugInfo()->GetSize(); local
439 WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_);
509 // Returns offset in the compilation unit.
519 size_t offset; local
526 offset = info_.StartTag(DW_TAG_reference_type);
537 offset = info_.StartTag(DW_TAG_reference_type);
596 offset
611 size_t offset = info_.StartTag(dwarf::DW_TAG_class_type); local
[all...]
H A Delf_debug_line_writer.h267 size_t offset = builder_->GetDebugLine()->GetSize(); local
268 WriteDebugLineTable(directories, files, opcodes, offset, &buffer, &debug_line_patches_);
/art/compiler/driver/
H A Dcompiler_driver.cc435 #define CREATE_TRAMPOLINE(type, abi, offset) \
438 type ## _ENTRYPOINT_OFFSET(8, offset)); \
441 type ## _ENTRYPOINT_OFFSET(4, offset)); \
2887 bool CompilerDriver::IsStringInit(uint32_t method_index, const DexFile* dex_file, int32_t* offset) { argument
2890 *offset = inliner->GetOffsetForStringInit(method_index, pointer_size);
H A Dcompiler_driver.h279 // Can we fast-path an IGET/IPUT access to an instance field? If yes, compute the field offset.
362 // Can we fast path instance field access? Computes field's offset and volatility.
454 bool IsStringInit(uint32_t method_index, const DexFile* dex_file, int32_t* offset);

Completed in 1845 milliseconds

1234567891011