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

12345678910

/dalvik/vm/mterp/c/
H A DOP_GOTO_32.cpp3 s4 offset = FETCH(1); /* low-order 16 bits */ local
4 offset |= ((s4) FETCH(2)) << 16; /* high-order 16 bits */
6 if (offset < 0)
7 ILOGV("|goto/32 -0x%08x", -offset);
9 ILOGV("|goto/32 +0x%08x", offset);
11 if (offset <= 0) /* allowed to branch to self */
12 PERIODIC_CHECKS(offset);
13 FINISH(offset);
H A DOP_GOTO_16.cpp3 s4 offset = (s2) FETCH(1); /* sign-extend next code unit */ local
5 if (offset < 0)
6 ILOGV("|goto/16 -0x%04x", -offset);
8 ILOGV("|goto/16 +0x%04x", offset);
10 if (offset < 0)
11 PERIODIC_CHECKS(offset);
12 FINISH(offset);
H A DOP_PACKED_SWITCH.cpp5 s4 offset; local
8 offset = FETCH(1) | (((s4) FETCH(2)) << 16);
9 ILOGV("|packed-switch v%d +0x%04x", vsrc1, offset);
10 switchData = pc + offset; // offset in 16-bit units
23 offset = dvmInterpHandlePackedSwitch(switchData, testVal);
24 ILOGV("> branch taken (0x%04x)", offset);
25 if (offset <= 0) /* uncommon */
26 PERIODIC_CHECKS(offset);
27 FINISH(offset);
[all...]
H A DOP_SPARSE_SWITCH.cpp5 s4 offset; local
8 offset = FETCH(1) | (((s4) FETCH(2)) << 16);
9 ILOGV("|sparse-switch v%d +0x%04x", vsrc1, offset);
10 switchData = pc + offset; // offset in 16-bit units
23 offset = dvmInterpHandleSparseSwitch(switchData, testVal);
24 ILOGV("> branch taken (0x%04x)", offset);
25 if (offset <= 0) /* uncommon */
26 PERIODIC_CHECKS(offset);
27 FINISH(offset);
[all...]
H A DOP_FILL_ARRAY_DATA.cpp4 s4 offset; local
9 offset = FETCH(1) | (((s4) FETCH(2)) << 16);
10 ILOGV("|fill-array-data v%d +0x%04x", vsrc1, offset);
11 arrayData = pc + offset; // offset in 16-bit units
/dalvik/libdex/
H A DDexDataMap.h44 * Add a new element to the map. The offset must be greater than the
47 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type);
50 * Get the type associated with the given offset. This returns -1 if
51 * there is no entry for the given offset.
53 int dexDataMapGet(DexDataMap* map, u4 offset);
56 * Verify that there is an entry in the map, mapping the given offset to
60 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type);
63 * Like dexDataMapVerify(), but also accept a 0 offset as valid.
65 DEX_INLINE bool dexDataMapVerify0Ok(DexDataMap* map, u4 offset, u2 type) { argument
66 if (offset
[all...]
H A DDexDataMap.cpp71 * Add a new element to the map. The offset must be greater than the
74 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) { argument
79 (map->offsets[map->count - 1] >= offset)) {
80 ALOGE("Out-of-order data map offset: %#x then %#x",
81 map->offsets[map->count - 1], offset);
85 map->offsets[map->count] = offset;
91 * Get the type associated with the given offset. This returns -1 if
92 * there is no entry for the given offset.
94 int dexDataMapGet(DexDataMap* map, u4 offset) { argument
106 if (offset < gues
125 dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) argument
[all...]
/dalvik/dx/src/com/android/dx/cf/code/
H A DBytecodeArray.java111 * Don't record the previous offset here, so that we get to see the
119 * Finds the offset to each instruction in the bytecode array. The
120 * result is a bit set with the offset of each opcode-per-se flipped on.
142 * the indicated offset (that is, the bit index), repeating until the
156 int offset = Bits.findFirst(workSet, 0);
157 if (offset < 0) {
160 Bits.clear(workSet, offset);
161 parseInstruction(offset, visitor);
162 visitor.setPreviousOffset(offset);
167 * Parses the instruction at the indicated offset
216 parseInstruction(int offset, Visitor visitor) argument
819 parseTableswitch(int offset, Visitor visitor) argument
862 parseLookupswitch(int offset, Visitor visitor) argument
900 parseNewarray(int offset, Visitor visitor) argument
1089 parseWide(int offset, Visitor visitor) argument
1172 visitInvalid(int opcode, int offset, int length) argument
1183 visitNoArgs(int opcode, int offset, int length, Type type) argument
1197 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1224 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
1235 visitBranch(int opcode, int offset, int length, int target) argument
1249 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
1261 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument
1268 setPreviousOffset(int offset) argument
1291 visitInvalid(int opcode, int offset, int length) argument
1296 visitNoArgs(int opcode, int offset, int length, Type type) argument
1302 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1308 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
1314 visitBranch(int opcode, int offset, int length, int target) argument
1320 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
1326 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initValues) argument
1332 setPreviousOffset(int offset) argument
1361 visitInvalid(int opcode, int offset, int length) argument
1367 visitNoArgs(int opcode, int offset, int length, Type type) argument
1374 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1381 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
1390 visitBranch(int opcode, int offset, int length, int target) argument
1397 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
1404 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument
1411 setPreviousOffset(int offset) argument
[all...]
H A DBasicBlocker.java56 * {@code non-null, sparse;} for each instruction offset to a branch of
62 * {@code non-null, sparse;} for each instruction offset to a throwing
67 /** offset of the previously parsed bytecode */
122 public void visitInvalid(int opcode, int offset, int length) { argument
123 visitCommon(offset, length, true);
127 public void visitNoArgs(int opcode, int offset, int length, Type type) { argument
131 visitCommon(offset, length, false);
132 targetLists[offset] = IntList.EMPTY;
136 visitCommon(offset, length, false);
137 visitThrowing(offset, lengt
187 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
198 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
215 visitBranch(int opcode, int offset, int length, int target) argument
246 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
260 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> intVals) argument
375 addWorkIfNecessary(int offset, boolean blockStart) argument
394 visitCommon(int offset, int length, boolean nextIsLive) argument
427 visitThrowing(int offset, int length, boolean nextIsLive) argument
442 setPreviousOffset(int offset) argument
[all...]
/dalvik/dx/src/com/android/dx/cf/iface/
H A DParseObserver.java38 * @param offset offset into {@code bytes} for the start of the
43 public void startParsingMember(ByteArray bytes, int offset, String name, argument
50 * @param offset offset into {@code bytes} for the end of the
56 public void endParsingMember(ByteArray bytes, int offset, String name, argument
63 * @param offset offset into {@code bytes} for what was parsed
67 public void parsed(ByteArray bytes, int offset, int len, String human); argument
/dalvik/vm/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cpp26 * int offset, int length)
35 int offset = args[2]; local
38 assert(offset+length <= (int)data->length);
40 dvmDbgDdmSendChunk(type, length, (const u1*)data->contents + offset);
H A Dsun_misc_Unsafe.cpp43 // The base offset is not type-dependent in this vm.
59 * public native boolean compareAndSwapInt(Object obj, long offset,
67 s8 offset = GET_ARG_LONG(args, 2); local
70 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset);
79 * public native boolean compareAndSwapLong(Object obj, long offset,
87 s8 offset = GET_ARG_LONG(args, 2); local
90 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset);
100 * public native boolean compareAndSwapObject(Object obj, long offset,
108 s8 offset = GET_ARG_LONG(args, 2); local
111 int32_t* address = (int32_t*) (((u1*) obj) + offset);
128 s8 offset = GET_ARG_LONG(args, 2); local
143 s8 offset = GET_ARG_LONG(args, 2); local
159 s8 offset = GET_ARG_LONG(args, 2); local
174 s8 offset = GET_ARG_LONG(args, 2); local
191 s8 offset = GET_ARG_LONG(args, 2); local
206 s8 offset = GET_ARG_LONG(args, 2); local
222 s8 offset = GET_ARG_LONG(args, 2); local
235 s8 offset = GET_ARG_LONG(args, 2); local
251 s8 offset = GET_ARG_LONG(args, 2); local
267 s8 offset = GET_ARG_LONG(args, 2); local
280 s8 offset = GET_ARG_LONG(args, 2); local
296 s8 offset = GET_ARG_LONG(args, 2); local
312 s8 offset = GET_ARG_LONG(args, 2); local
325 s8 offset = GET_ARG_LONG(args, 2); local
343 s8 offset = GET_ARG_LONG(args, 2); local
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DOffsettedItem.java23 * An item in a Dalvik file which is referenced by absolute offset.
41 * {@code >= -1;} assigned offset of the item from the start of its section,
44 private int offset; field in class:OffsettedItem
47 * Gets the absolute offset of the given item, returning {@code 0}
51 * @return {@code >= 0;} the item's absolute offset, or {@code 0}
63 * Constructs an instance. The offset is initially unassigned.
80 this.offset = -1;
182 * Gets the relative item offset. The offset is from the start of
185 * @return {@code >= 0;} the offset
223 place(Section addedTo, int offset) argument
301 place0(Section addedTo, int offset) argument
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DOffsettedItem.java23 * An item in a Dalvik file which is referenced by absolute offset.
41 * {@code >= -1;} assigned offset of the item from the start of its section,
44 private int offset; field in class:OffsettedItem
47 * Gets the absolute offset of the given item, returning {@code 0}
51 * @return {@code >= 0;} the item's absolute offset, or {@code 0}
63 * Constructs an instance. The offset is initially unassigned.
80 this.offset = -1;
182 * Gets the relative item offset. The offset is from the start of
185 * @return {@code >= 0;} the offset
223 place(Section addedTo, int offset) argument
301 place0(Section addedTo, int offset) argument
[all...]
/dalvik/dx/src/com/android/dx/cf/direct/
H A DCodeObserver.java68 public void visitInvalid(int opcode, int offset, int length) { argument
69 observer.parsed(bytes, offset, length, header(offset));
73 public void visitNoArgs(int opcode, int offset, int length, Type type) { argument
74 observer.parsed(bytes, offset, length, header(offset));
78 public void visitLocal(int opcode, int offset, int length, argument
94 observer.parsed(bytes, offset, length,
95 header(offset) + (argComment ? " // " : " ") +
100 public void visitConstant(int opcode, int offset, in argument
146 visitBranch(int opcode, int offset, int length, int target) argument
154 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
180 visitNewarray(int offset, int length, CstType cst, ArrayList<Constant> intVals) argument
190 setPreviousOffset(int offset) argument
204 header(int offset) argument
229 visitLiteralInt(int opcode, int offset, int length, int value) argument
256 visitLiteralLong(int opcode, int offset, int length, long value) argument
280 visitLiteralFloat(int opcode, int offset, int length, int bits) argument
298 visitLiteralDouble(int opcode, int offset, int length, long bits) argument
[all...]
H A DAttributeFactory.java64 * @param offset offset into {@code dcf}'s {@code bytes}
69 public final Attribute parse(DirectClassFile cf, int context, int offset, argument
84 int nameIdx = bytes.getUnsignedShort(offset);
85 int length = bytes.getInt(offset + 2);
90 observer.parsed(bytes, offset, 2,
92 observer.parsed(bytes, offset + 2, 4,
96 return parse0(cf, context, name.getString(), offset + 6, length,
101 "attribute at offset " + Hex.u4(offset));
121 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument
[all...]
H A DStdAttributeFactory.java81 int offset, int length, ParseObserver observer) {
85 return deprecated(cf, offset, length, observer);
88 return enclosingMethod(cf, offset, length, observer);
91 return innerClasses(cf, offset, length, observer);
94 return runtimeInvisibleAnnotations(cf, offset, length,
98 return runtimeVisibleAnnotations(cf, offset, length,
102 return synthetic(cf, offset, length, observer);
105 return signature(cf, offset, length, observer);
108 return sourceFile(cf, offset, length, observer);
114 return constantValue(cf, offset, lengt
80 parse0(DirectClassFile cf, int context, String name, int offset, int length, ParseObserver observer) argument
195 annotationDefault(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
211 code(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
315 constantValue(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
337 deprecated(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
349 enclosingMethod(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
378 exceptions(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
406 innerClasses(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
463 lineNumberTable(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
504 localVariableTable(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
527 localVariableTypeTable(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
608 runtimeInvisibleAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
625 runtimeVisibleAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
642 runtimeInvisibleParameterAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
659 runtimeVisibleParameterAnnotations(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
676 signature(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
698 sourceFile(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
720 synthetic(DirectClassFile cf, int offset, int length, ParseObserver observer) argument
[all...]
/dalvik/vm/mterp/mips/
H A DOP_IGET_QUICK.S4 # op vA, vB, offset /* CCCC */
7 FETCH(a1, 1) # a1 <- field byte offset
H A DOP_IGET_WIDE_QUICK.S3 # iget-wide-quick vA, vB, offset /* CCCC */
6 FETCH(a1, 1) # a1 <- field byte offset
/dalvik/dx/tests/093-ssa-invoke-range/
H A DBlort.java58 int offset = 1;
62 methodThatNeedsInvokeRange(src, 0, dest, offset, 5, 0);
63 return offset;
65 long offset = System.currentTimeMillis();;
66 return offset;
/dalvik/vm/oo/
H A DObjectInlines.h37 * Field access functions. Pass in the word offset from Field->byteOffset.
50 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) { argument
51 return ((JValue*)BYTE_OFFSET(obj, offset));
54 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) { argument
55 return ((JValue*)BYTE_OFFSET(obj, offset))->z;
57 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) { argument
58 return ((JValue*)BYTE_OFFSET(obj, offset))->b;
60 INLINE s2 dvmGetFieldShort(const Object* obj, int offset) { argument
61 return ((JValue*)BYTE_OFFSET(obj, offset))->s;
63 INLINE u2 dvmGetFieldChar(const Object* obj, int offset) { argument
66 dvmGetFieldInt(const Object* obj, int offset) argument
69 dvmGetFieldLong(const Object* obj, int offset) argument
72 dvmGetFieldFloat(const Object* obj, int offset) argument
75 dvmGetFieldDouble(const Object* obj, int offset) argument
78 dvmGetFieldObject(const Object* obj, int offset) argument
81 dvmGetFieldBooleanVolatile(const Object* obj, int offset) argument
85 dvmGetFieldByteVolatile(const Object* obj, int offset) argument
89 dvmGetFieldShortVolatile(const Object* obj, int offset) argument
93 dvmGetFieldCharVolatile(const Object* obj, int offset) argument
97 dvmGetFieldIntVolatile(const Object* obj, int offset) argument
101 dvmGetFieldFloatVolatile(const Object* obj, int offset) argument
107 dvmGetFieldLongVolatile(const Object* obj, int offset) argument
113 dvmGetFieldDoubleVolatile(const Object* obj, int offset) argument
120 dvmGetFieldObjectVolatile(const Object* obj, int offset) argument
125 dvmSetFieldBoolean(Object* obj, int offset, bool val) argument
128 dvmSetFieldByte(Object* obj, int offset, s1 val) argument
131 dvmSetFieldShort(Object* obj, int offset, s2 val) argument
134 dvmSetFieldChar(Object* obj, int offset, u2 val) argument
137 dvmSetFieldInt(Object* obj, int offset, s4 val) argument
140 dvmSetFieldFloat(Object* obj, int offset, float val) argument
143 dvmSetFieldLong(Object* obj, int offset, s8 val) argument
146 dvmSetFieldDouble(Object* obj, int offset, double val) argument
149 dvmSetFieldObject(Object* obj, int offset, Object* val) argument
156 dvmSetFieldIntVolatile(Object* obj, int offset, s4 val) argument
167 dvmSetFieldBooleanVolatile(Object* obj, int offset, bool val) argument
170 dvmSetFieldByteVolatile(Object* obj, int offset, s1 val) argument
173 dvmSetFieldShortVolatile(Object* obj, int offset, s2 val) argument
176 dvmSetFieldCharVolatile(Object* obj, int offset, u2 val) argument
179 dvmSetFieldFloatVolatile(Object* obj, int offset, float val) argument
184 dvmSetFieldLongVolatile(Object* obj, int offset, s8 val) argument
188 dvmSetFieldDoubleVolatile(Object* obj, int offset, double val) argument
193 dvmSetFieldObjectVolatile(Object* obj, int offset, Object* val) argument
[all...]
/dalvik/dx/src/com/android/dx/command/dump/
H A DBaseDumper.java67 /** the offset of the next byte to dump */
126 public void parsed(ByteArray bytes, int offset, int len, String human) { argument
127 offset = bytes.underlyingOffset(offset, getBytes());
131 if (offset < at) {
132 println("<dump skipped backwards to " + Hex.u4(offset) + ">");
133 at = offset;
134 } else if (offset > at) {
135 String hex = rawBytes ? hexDump(at, offset - at) : "";
136 print(twoColumns(hex, "<skipped to " + Hex.u4(offset)
146 startParsingMember(ByteArray bytes, int offset, String name, String descriptor) argument
152 endParsingMember(ByteArray bytes, int offset, String name, String descriptor, Member member) argument
173 setAt(ByteArray arr, int offset) argument
263 hexDump(int offset, int len) argument
[all...]
/dalvik/vm/mterp/armv6t2/
H A DOP_IGET_QUICK.S4 /* op vA, vB, offset@CCCC */
6 FETCH(r1, 1) @ r1<- field byte offset
H A DOP_IGET_WIDE_QUICK.S3 /* iget-wide-quick vA, vB, offset@CCCC */
5 FETCH(ip, 1) @ ip<- field byte offset
/dalvik/dx/src/com/android/dx/io/
H A DDexHasher.java45 int offset = SIGNATURE_OFFSET + SIGNATURE_SIZE;
48 digest.update(bytes, offset, bytes.length - offset);
57 int offset = CHECKSUM_OFFSET + CHECKSUM_SIZE;
60 adler32.update(bytes, offset, bytes.length - offset);

Completed in 778 milliseconds

12345678910