Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 119) 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.java126 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
127 visitCommon(offset, length, true); in visitInvalid()
132 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
136 visitCommon(offset, length, false); in visitNoArgs()
137 targetLists[offset] = IntList.EMPTY; in visitNoArgs()
141 visitCommon(offset, length, false); in visitNoArgs()
142 visitThrowing(offset, length, false); in visitNoArgs()
168 visitCommon(offset, length, true); in visitNoArgs()
169 visitThrowing(offset, length, true); in visitNoArgs()
178 visitCommon(offset, length, true); in visitNoArgs()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DStdAttributeFactory.java85 int offset, int length, ParseObserver observer) { in parse0() argument
89 return bootstrapMethods(cf, offset, length, observer); in parse0()
92 return deprecated(cf, offset, length, observer); in parse0()
95 return enclosingMethod(cf, offset, length, observer); in parse0()
98 return innerClasses(cf, offset, length, observer); in parse0()
101 return runtimeInvisibleAnnotations(cf, offset, length, in parse0()
105 return runtimeVisibleAnnotations(cf, offset, length, in parse0()
109 return synthetic(cf, offset, length, observer); in parse0()
112 return signature(cf, offset, length, observer); in parse0()
115 return sourceDebugExtension(cf, offset, length, observer); in parse0()
[all …]
DCodeObserver.java66 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument
67 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid()
72 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument
73 observer.parsed(bytes, offset, length, header(offset)); in visitNoArgs()
78 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument
94 observer.parsed(bytes, offset, length, in visitLocal()
95 header(offset) + (argComment ? " // " : " ") + in visitLocal()
101 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument
105 visitNoArgs(opcode, offset, length, null); in visitConstant()
110 visitLiteralInt(opcode, offset, length, value); in visitConstant()
[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()
/dalvik/dx/src/com/android/dex/
DCallSiteId.java28 private final int offset; field in CallSiteId
30 public CallSiteId(Dex dex, int offset) { in CallSiteId() argument
32 this.offset = offset; in CallSiteId()
37 return Unsigned.compare(offset, o.offset); in compareTo()
41 return offset; in getCallSiteOffset()
45 out.writeInt(offset); in writeTo()
51 return String.valueOf(offset); in toString()
53 return dex.protoIds().get(offset).toString(); in toString()
DMutf8.java89 public static void encode(byte[] dst, int offset, String s) { in encode() argument
94 dst[offset++] = (byte) ch; in encode()
96 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); in encode()
97 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
99 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); in encode()
100 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6))); in encode()
101 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
DClassDef.java25 private final int offset; field in ClassDef
35 public ClassDef(Dex buffer, int offset, int typeIndex, int accessFlags, in ClassDef() argument
39 this.offset = offset; in ClassDef()
51 return offset; in getOffset()
DCode.java99 final int offset; field in Code.CatchHandler
101 public CatchHandler(int[] typeIndexes, int[] addresses, int catchAllAddress, int offset) { in CatchHandler() argument
105 this.offset = offset; in CatchHandler()
121 return offset; in getOffset()
/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/dx/src/com/android/dx/dex/file/
DOffsettedItem.java44 private int offset; field in OffsettedItem
80 this.offset = -1; in OffsettedItem()
190 if (offset < 0) { in getRelativeOffset()
194 return offset; in getRelativeOffset()
205 if (offset < 0) { in getAbsoluteOffset()
209 return addedTo.getAbsoluteOffset(offset); in getAbsoluteOffset()
224 public final int place(Section addedTo, int offset) { in place() argument
229 if (offset < 0) { in place()
238 offset = (offset + mask) & ~mask; in place()
241 this.offset = offset; in place()
[all …]
/dalvik/libdex/
DDexDataMap.cpp71 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) { in dexDataMapAdd() argument
76 (map->offsets[map->count - 1] >= offset)) { in dexDataMapAdd()
78 map->offsets[map->count - 1], offset); in dexDataMapAdd()
82 map->offsets[map->count] = offset; in dexDataMapAdd()
91 int dexDataMapGet(DexDataMap* map, u4 offset) { in dexDataMapGet() argument
103 if (offset < guess) { in dexDataMapGet()
105 } else if (offset > guess) { in dexDataMapGet()
122 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) { in dexDataMapVerify() argument
123 int found = dexDataMapGet(map, offset); in dexDataMapVerify()
131 offset, type); in dexDataMapVerify()
[all …]
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()
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/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()
/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/util/
DByteArray.java112 public int underlyingOffset(int offset) { in underlyingOffset() argument
113 return start + offset; in underlyingOffset()
203 public void getBytes(byte[] out, int offset) { in getBytes() argument
204 if ((out.length - offset) < size) { in getBytes()
209 System.arraycopy(bytes, start, out, offset, size); in getBytes()
313 public int read(byte[] arr, int offset, int length) { in read() argument
314 if ((offset + length) > arr.length) { in read()
315 length = arr.length - offset; in read()
323 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
/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()
/dalvik/dx/src/com/android/dx/command/dump/
DBaseDumper.java132 public void parsed(ByteArray bytes, int offset, int len, String human) { in parsed() argument
133 offset = bytes.underlyingOffset(offset); in parsed()
137 String hex = rawBytes ? hexDump(offset, len) : ""; in parsed()
144 public void startParsingMember(ByteArray bytes, int offset, String name, in startParsingMember() argument
151 public void endParsingMember(ByteArray bytes, int offset, String name, in endParsingMember() argument
251 protected final String hexDump(int offset, int len) { in hexDump() argument
252 return Hex.dump(bytes, offset, len, offset, hexCols, 4); in hexDump()
/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

12345