/dalvik/dx/src/com/android/dx/cf/code/ |
D | BytecodeArray.java | 156 int offset = Bits.findFirst(workSet, 0); in processWorkSet() local 157 if (offset < 0) { in processWorkSet() 160 Bits.clear(workSet, offset); in processWorkSet() 161 parseInstruction(offset, visitor); in processWorkSet() 162 visitor.setPreviousOffset(offset); in processWorkSet() 216 public int parseInstruction(int offset, Visitor visitor) { in parseInstruction() argument 222 int opcode = bytes.getUnsignedByte(offset); in parseInstruction() 228 visitor.visitNoArgs(opcode, offset, 1, Type.VOID); in parseInstruction() 232 visitor.visitConstant(ByteOps.LDC, offset, 1, in parseInstruction() 237 visitor.visitConstant(ByteOps.LDC, offset, 1, in parseInstruction() [all …]
|
D | BasicBlocker.java | 122 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/vm/mterp/c/ |
D | OP_GOTO_32.cpp | 3 s4 offset = FETCH(1); /* low-order 16 bits */ in HANDLE_OPCODE() local 4 offset |= ((s4) FETCH(2)) << 16; /* high-order 16 bits */ in HANDLE_OPCODE() 6 if (offset < 0) in HANDLE_OPCODE() 7 ILOGV("|goto/32 -0x%08x", -offset); in HANDLE_OPCODE() 9 ILOGV("|goto/32 +0x%08x", offset); in HANDLE_OPCODE() 11 if (offset <= 0) /* allowed to branch to self */ in HANDLE_OPCODE() 12 PERIODIC_CHECKS(offset); in HANDLE_OPCODE() 13 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_GOTO_16.cpp | 3 s4 offset = (s2) FETCH(1); /* sign-extend next code unit */ in HANDLE_OPCODE() local 5 if (offset < 0) in HANDLE_OPCODE() 6 ILOGV("|goto/16 -0x%04x", -offset); in HANDLE_OPCODE() 8 ILOGV("|goto/16 +0x%04x", offset); in HANDLE_OPCODE() 10 if (offset < 0) in HANDLE_OPCODE() 11 PERIODIC_CHECKS(offset); in HANDLE_OPCODE() 12 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_SPARSE_SWITCH.cpp | 5 s4 offset; in HANDLE_OPCODE() local 8 offset = FETCH(1) | (((s4) FETCH(2)) << 16); in HANDLE_OPCODE() 9 ILOGV("|sparse-switch v%d +0x%04x", vsrc1, offset); in HANDLE_OPCODE() 10 switchData = pc + offset; // offset in 16-bit units in HANDLE_OPCODE() 23 offset = dvmInterpHandleSparseSwitch(switchData, testVal); in HANDLE_OPCODE() 24 ILOGV("> branch taken (0x%04x)", offset); in HANDLE_OPCODE() 25 if (offset <= 0) /* uncommon */ in HANDLE_OPCODE() 26 PERIODIC_CHECKS(offset); in HANDLE_OPCODE() 27 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_PACKED_SWITCH.cpp | 5 s4 offset; in HANDLE_OPCODE() local 8 offset = FETCH(1) | (((s4) FETCH(2)) << 16); in HANDLE_OPCODE() 9 ILOGV("|packed-switch v%d +0x%04x", vsrc1, offset); in HANDLE_OPCODE() 10 switchData = pc + offset; // offset in 16-bit units in HANDLE_OPCODE() 23 offset = dvmInterpHandlePackedSwitch(switchData, testVal); in HANDLE_OPCODE() 24 ILOGV("> branch taken (0x%04x)", offset); in HANDLE_OPCODE() 25 if (offset <= 0) /* uncommon */ in HANDLE_OPCODE() 26 PERIODIC_CHECKS(offset); in HANDLE_OPCODE() 27 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_FILL_ARRAY_DATA.cpp | 4 s4 offset; in HANDLE_OPCODE() local 9 offset = FETCH(1) | (((s4) FETCH(2)) << 16); in HANDLE_OPCODE() 10 ILOGV("|fill-array-data v%d +0x%04x", vsrc1, offset); in HANDLE_OPCODE() 11 arrayData = pc + offset; // offset in 16-bit units in HANDLE_OPCODE()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | CodeObserver.java | 68 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 69 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid() 73 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument 74 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() 100 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument 104 visitNoArgs(opcode, offset, length, null); in visitConstant() 109 visitLiteralInt(opcode, offset, length, value); in visitConstant() [all …]
|
D | StdAttributeFactory.java | 81 int offset, int length, ParseObserver observer) { in parse0() argument 85 return deprecated(cf, offset, length, observer); in parse0() 88 return enclosingMethod(cf, offset, length, observer); in parse0() 91 return innerClasses(cf, offset, length, observer); in parse0() 94 return runtimeInvisibleAnnotations(cf, offset, length, in parse0() 98 return runtimeVisibleAnnotations(cf, offset, length, in parse0() 102 return synthetic(cf, offset, length, observer); in parse0() 105 return signature(cf, offset, length, observer); in parse0() 108 return sourceFile(cf, offset, length, observer); in parse0() 114 return constantValue(cf, offset, length, observer); in parse0() [all …]
|
D | AttributeFactory.java | 69 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()
|
/dalvik/vm/oo/ |
D | ObjectInlines.h | 50 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) { in dvmFieldPtr() argument 51 return ((JValue*)BYTE_OFFSET(obj, offset)); in dvmFieldPtr() 54 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) { in dvmGetFieldBoolean() argument 55 return ((JValue*)BYTE_OFFSET(obj, offset))->z; in dvmGetFieldBoolean() 57 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) { in dvmGetFieldByte() argument 58 return ((JValue*)BYTE_OFFSET(obj, offset))->b; in dvmGetFieldByte() 60 INLINE s2 dvmGetFieldShort(const Object* obj, int offset) { in dvmGetFieldShort() argument 61 return ((JValue*)BYTE_OFFSET(obj, offset))->s; in dvmGetFieldShort() 63 INLINE u2 dvmGetFieldChar(const Object* obj, int offset) { in dvmGetFieldChar() argument 64 return ((JValue*)BYTE_OFFSET(obj, offset))->c; in dvmGetFieldChar() [all …]
|
/dalvik/vm/native/ |
D | sun_misc_Unsafe.cpp | 67 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_compareAndSwapInt() local 70 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapInt() 87 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_compareAndSwapLong() local 90 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapLong() 108 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() local 111 int32_t* address = (int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() 128 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_getIntVolatile() local 129 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getIntVolatile() 143 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_putIntVolatile() local 145 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_putIntVolatile() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | OffsettedItem.java | 44 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/ |
D | OffsettedItem.java | 44 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/command/dump/ |
D | BaseDumper.java | 126 public void parsed(ByteArray bytes, int offset, int len, String human) { in parsed() argument 127 offset = bytes.underlyingOffset(offset, getBytes()); in parsed() 131 if (offset < at) { in parsed() 132 println("<dump skipped backwards to " + Hex.u4(offset) + ">"); in parsed() 133 at = offset; in parsed() 134 } else if (offset > at) { in parsed() 135 String hex = rawBytes ? hexDump(at, offset - at) : ""; in parsed() 136 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); in parsed() 137 at = offset; in parsed() 140 String hex = rawBytes ? hexDump(offset, len) : ""; in parsed() [all …]
|
/dalvik/libdex/ |
D | DexDataMap.cpp | 74 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 …]
|
D | DexDataMap.h | 47 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()
|
/dalvik/dx/src/com/android/dx/io/ |
D | DexHasher.java | 45 int offset = SIGNATURE_OFFSET + SIGNATURE_SIZE; in computeSignature() local 48 digest.update(bytes, offset, bytes.length - offset); in computeSignature() 57 int offset = CHECKSUM_OFFSET + CHECKSUM_SIZE; in computeChecksum() local 60 adler32.update(bytes, offset, bytes.length - offset); in computeChecksum()
|
D | Code.java | 99 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/dx/src/com/android/dx/util/ |
D | Mutf8.java | 88 public static void encode(byte[] dst, int offset, String s) { in encode() argument 93 dst[offset++] = (byte) ch; in encode() 95 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); in encode() 96 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode() 98 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); in encode() 99 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6))); in encode() 100 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
|
/dalvik/dx/tests/093-ssa-invoke-range/ |
D | Blort.java | 58 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/ |
D | Form10t.java | 73 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()
|
D | Form20t.java | 73 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()
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
D | Form10t.java | 73 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()
|
D | Form20t.java | 73 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()
|