Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 106) sorted by relevance

12345

/dalvik/dx/src/com/android/dx/cf/code/
DBytecodeArray.java157 int offset = Bits.findFirst(workSet, 0); in processWorkSet() local
158 if (offset < 0) { in processWorkSet()
161 Bits.clear(workSet, offset); in processWorkSet()
162 parseInstruction(offset, visitor); in processWorkSet()
163 visitor.setPreviousOffset(offset); in processWorkSet()
217 public int parseInstruction(int offset, Visitor visitor) { in parseInstruction() argument
223 int opcode = bytes.getUnsignedByte(offset); in parseInstruction()
229 visitor.visitNoArgs(opcode, offset, 1, Type.VOID); in parseInstruction()
233 visitor.visitConstant(ByteOps.LDC, offset, 1, in parseInstruction()
238 visitor.visitConstant(ByteOps.LDC, offset, 1, in parseInstruction()
[all …]
DBasicBlocker.java122 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
123 visitCommon(offset, length, true); in visitInvalid()
127 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
131 visitCommon(offset, length, false); in visitNoArgs()
132 targetLists[offset] = IntList.EMPTY; in visitNoArgs()
136 visitCommon(offset, length, false); in visitNoArgs()
137 visitThrowing(offset, length, false); in visitNoArgs()
163 visitCommon(offset, length, true); in visitNoArgs()
164 visitThrowing(offset, length, true); in visitNoArgs()
173 visitCommon(offset, length, true); in visitNoArgs()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DCodeObserver.java65 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
66 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid()
70 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
71 observer.parsed(bytes, offset, length, header(offset)); in visitNoArgs()
75 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument
91 observer.parsed(bytes, offset, length, in visitLocal()
92 header(offset) + (argComment ? " // " : " ") + in visitLocal()
97 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument
101 visitNoArgs(opcode, offset, length, null); in visitConstant()
106 visitLiteralInt(opcode, offset, length, value); in visitConstant()
[all …]
DStdAttributeFactory.java80 int offset, int length, ParseObserver observer) { in parse0() argument
84 return deprecated(cf, offset, length, observer); in parse0()
87 return enclosingMethod(cf, offset, length, observer); in parse0()
90 return innerClasses(cf, offset, length, observer); in parse0()
93 return runtimeInvisibleAnnotations(cf, offset, length, in parse0()
97 return runtimeVisibleAnnotations(cf, offset, length, in parse0()
101 return synthetic(cf, offset, length, observer); in parse0()
104 return signature(cf, offset, length, observer); in parse0()
107 return sourceFile(cf, offset, length, observer); in parse0()
113 return constantValue(cf, offset, length, observer); in parse0()
[all …]
DAttributeFactory.java69 public final Attribute parse(DirectClassFile cf, int context, int offset, in parse() argument
84 int nameIdx = bytes.getUnsignedShort(offset); in parse()
85 int length = bytes.getInt(offset + 2); in parse()
90 observer.parsed(bytes, offset, 2, in parse()
92 observer.parsed(bytes, offset + 2, 4, in parse()
96 return parse0(cf, context, name.getString(), offset + 6, length, in parse()
101 "attribute at offset " + Hex.u4(offset)); in parse()
122 int offset, int length, in parse0() argument
126 Attribute result = new RawAttribute(name, bytes, offset, length, pool); in parse0()
129 observer.parsed(bytes, offset, length, "attribute data"); in parse0()
DAttributeListParser.java37 private final int offset; field in AttributeListParser
60 public AttributeListParser(DirectClassFile cf, int context, int offset, in AttributeListParser() argument
70 int size = cf.getBytes().getUnsignedShort(offset); in AttributeListParser()
74 this.offset = offset; in AttributeListParser()
124 int at = offset + 2; // Skip the count. in parse()
129 observer.parsed(bytes, offset, 2, in parse()
DMemberListParser.java42 private final int offset; field in MemberListParser
63 int offset, AttributeFactory attributeFactory) { in MemberListParser() argument
68 if (offset < 0) { in MemberListParser()
78 this.offset = offset; in MemberListParser()
119 return bytes.getUnsignedShort(offset); in getCount()
175 int at = offset + 2; // Skip the count. in parse()
181 observer.parsed(bytes, offset, 2, in parse()
/dalvik/dx/src/com/android/dx/dex/file/
DOffsettedItem.java44 private int offset; field in OffsettedItem
80 this.offset = -1; in OffsettedItem()
189 if (offset < 0) { in getRelativeOffset()
193 return offset; in getRelativeOffset()
204 if (offset < 0) { in getAbsoluteOffset()
208 return addedTo.getAbsoluteOffset(offset); in getAbsoluteOffset()
223 public final int place(Section addedTo, int offset) { in place() argument
228 if (offset < 0) { in place()
237 offset = (offset + mask) & ~mask; in place()
240 this.offset = offset; in place()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DOffsettedItem.java44 private int offset; field in OffsettedItem
80 this.offset = -1; in OffsettedItem()
189 if (offset < 0) { in getRelativeOffset()
193 return offset; in getRelativeOffset()
204 if (offset < 0) { in getAbsoluteOffset()
208 return addedTo.getAbsoluteOffset(offset); in getAbsoluteOffset()
223 public final int place(Section addedTo, int offset) { in place() argument
228 if (offset < 0) { in place()
237 offset = (offset + mask) & ~mask; in place()
240 this.offset = offset; in place()
[all …]
/dalvik/libdex/
DDexDataMap.h47 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type);
53 int dexDataMapGet(DexDataMap* map, u4 offset);
60 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type);
65 DEX_INLINE bool dexDataMapVerify0Ok(DexDataMap* map, u4 offset, u2 type) { in dexDataMapVerify0Ok() argument
66 if (offset == 0) { in dexDataMapVerify0Ok()
70 return dexDataMapVerify(map, offset, type); in dexDataMapVerify0Ok()
DDexDataMap.cpp74 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) { in dexDataMapAdd() argument
79 (map->offsets[map->count - 1] >= offset)) { in dexDataMapAdd()
81 map->offsets[map->count - 1], offset); in dexDataMapAdd()
85 map->offsets[map->count] = offset; in dexDataMapAdd()
94 int dexDataMapGet(DexDataMap* map, u4 offset) { in dexDataMapGet() argument
106 if (offset < guess) { in dexDataMapGet()
108 } else if (offset > guess) { in dexDataMapGet()
125 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) { in dexDataMapVerify() argument
126 int found = dexDataMapGet(map, offset); in dexDataMapVerify()
134 offset, type); in dexDataMapVerify()
[all …]
DDexCatch.h83 const DexCode* pCode, u4 offset) in dexCatchIteratorInit() argument
86 dexGetCatchHandlerData(pCode) + offset); in dexCatchIteratorInit()
123 int offset = -1; in dexFindCatchHandler() local
144 offset = tries[0].handlerOff; in dexFindCatchHandler()
148 offset = dexFindCatchHandlerOffset0(triesSize, dexGetTries(pCode), in dexFindCatchHandler()
153 if (offset < 0) { in dexFindCatchHandler()
157 dexCatchIteratorInit(pIterator, pCode, offset); in dexFindCatchHandler()
/dalvik/dx/src/com/android/dx/command/dump/
DBaseDumper.java124 public void parsed(ByteArray bytes, int offset, int len, String human) { in parsed() argument
125 offset = bytes.underlyingOffset(offset, getBytes()); in parsed()
129 if (offset < at) { in parsed()
130 println("<dump skipped backwards to " + Hex.u4(offset) + ">"); in parsed()
131 at = offset; in parsed()
132 } else if (offset > at) { in parsed()
133 String hex = rawBytes ? hexDump(at, offset - at) : ""; in parsed()
134 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); in parsed()
135 at = offset; in parsed()
138 String hex = rawBytes ? hexDump(offset, len) : ""; in parsed()
[all …]
/dalvik/dx/tests/093-ssa-invoke-range/
DBlort.java58 int offset = 1; in testMixedCategory() local
62 methodThatNeedsInvokeRange(src, 0, dest, offset, 5, 0); in testMixedCategory()
63 return offset; in testMixedCategory()
65 long offset = System.currentTimeMillis();; in testMixedCategory() local
66 return offset; in testMixedCategory()
/dalvik/dx/src/com/android/dx/dex/code/form/
DForm20t.java73 int offset = insn.getTargetOffset(); in branchFits() local
76 return (offset != 0) && signedFitsInShort(offset); in branchFits()
82 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
84 write(out, opcodeUnit(insn, 0), (short) offset); in writeTo()
DForm10t.java73 int offset = insn.getTargetOffset(); in branchFits() local
76 return (offset != 0) && signedFitsInByte(offset); in branchFits()
82 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
84 write(out, opcodeUnit(insn, (offset & 0xff))); in writeTo()
DForm21t.java89 int offset = insn.getTargetOffset(); in branchFits() local
92 return (offset != 0) && signedFitsInShort(offset); in branchFits()
99 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
103 (short) offset); in writeTo()
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/
DForm20t.java73 int offset = insn.getTargetOffset(); in branchFits() local
76 return (offset != 0) && signedFitsInShort(offset); in branchFits()
88 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
90 write(out, opcodeUnit(insn, 0), (short) offset); in writeTo()
DForm10t.java73 int offset = insn.getTargetOffset(); in branchFits() local
76 return (offset != 0) && signedFitsInByte(offset); in branchFits()
88 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
90 write(out, opcodeUnit(insn, (offset & 0xff))); in writeTo()
DForm21t.java78 int offset = insn.getTargetOffset(); in branchFits() local
81 return (offset != 0) && signedFitsInShort(offset); in branchFits()
94 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
98 (short) offset); in writeTo()
DForm22t.java80 int offset = insn.getTargetOffset(); in branchFits() local
83 return (offset != 0) && signedFitsInShort(offset); in branchFits()
96 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo() local
101 (short) offset); in writeTo()
/dalvik/dx/src/com/android/dx/cf/iface/
DParseObserver.java43 public void startParsingMember(ByteArray bytes, int offset, String name, in startParsingMember() argument
56 public void endParsingMember(ByteArray bytes, int offset, String name, in endParsingMember() argument
67 public void parsed(ByteArray bytes, int offset, int len, String human); in parsed() argument
/dalvik/dx/src/com/android/dx/util/
DByteArray.java111 public int underlyingOffset(int offset, byte[] bytes) { in underlyingOffset() argument
116 return start + offset; in underlyingOffset()
206 public void getBytes(byte[] out, int offset) { in getBytes() argument
207 if ((out.length - offset) < size) { in getBytes()
212 System.arraycopy(bytes, start, out, offset, size); in getBytes()
314 public int read(byte[] arr, int offset, int length) { in read() argument
315 if ((offset + length) > arr.length) { in read()
316 length = arr.length - offset; in read()
324 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
/dalvik/dexgen/src/com/android/dexgen/util/
DByteArray.java111 public int underlyingOffset(int offset, byte[] bytes) { in underlyingOffset() argument
116 return start + offset; in underlyingOffset()
206 public void getBytes(byte[] out, int offset) { in getBytes() argument
207 if ((out.length - offset) < size) { in getBytes()
212 System.arraycopy(bytes, start, out, offset, size); in getBytes()
314 public int read(byte[] arr, int offset, int length) { in read() argument
315 if ((offset + length) > arr.length) { in read()
316 length = arr.length - offset; in read()
324 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
/dalvik/dx/src/com/android/dx/cf/attrib/
DRawAttribute.java62 public RawAttribute(String name, ByteArray data, int offset, in RawAttribute() argument
64 this(name, data.slice(offset, offset + length), pool); in RawAttribute()

12345