Searched defs:offset (Results 1 - 25 of 113) sorted by relevance

12345

/dalvik/vm/mterp/c/
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_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_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
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...]
/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/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);
/dalvik/dx/src/com/android/dx/cf/attrib/
H A DRawAttribute.java58 * @param offset offset in {@code data} to the attribute data
62 public RawAttribute(String name, ByteArray data, int offset, argument
64 this(name, data.slice(offset, offset + length), pool);
/dalvik/dx/src/com/android/dx/cf/code/
H A DValueAwareMachine.java41 public void run(Frame frame, int offset, int opcode) { argument
172 setResult(type.asUninitialized(offset));
/dalvik/dx/src/com/android/dx/command/dump/
H A DSsaDumper.java83 public void endParsingMember(ByteArray bytes, int offset, String name, argument
/dalvik/dx/src/com/android/dx/util/
H A DMutf8.java86 * dst}, starting at {@code offset}.
88 public static void encode(byte[] dst, int offset, String s) { argument
93 dst[offset++] = (byte) ch;
95 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6)));
96 dst[offset++] = (byte) (0x80 | (0x3f & ch));
98 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12)));
99 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6)));
100 dst[offset++] = (byte) (0x80 | (0x3f & ch));
/dalvik/vm/alloc/
H A DHeapBitmapInlines.h30 const uintptr_t offset = (uintptr_t)obj - hb->base; local
31 const size_t index = HB_OFFSET_TO_INDEX(offset);
32 const unsigned long mask = HB_OFFSET_TO_MASK(offset);
100 const uintptr_t offset = (uintptr_t)obj - hb->base; local
101 return hb->bits[HB_OFFSET_TO_INDEX(offset)] & HB_OFFSET_TO_MASK(offset);
/dalvik/dx/src/com/android/dx/cf/direct/
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 DAttributeListParser.java36 /** offset in the byte array of the classfile to the start of the list */
37 private final int offset; field in class:AttributeListParser
45 /** {@code >= -1;} the end offset of this list in the byte array of the
57 * @param offset offset in {@code bytes} to the start of the list
60 public AttributeListParser(DirectClassFile cf, int context, int offset, argument
70 int size = cf.getBytes().getUnsignedShort(offset);
74 this.offset = offset;
90 * Gets the end offset o
[all...]
H A DFieldListParser.java39 * @param offset offset in {@code bytes} to the start of the list
42 public FieldListParser(DirectClassFile cf, CstType definer, int offset, argument
44 super(cf, definer, offset, attributeFactory);
H A DMethodListParser.java39 * @param offset offset in {@code bytes} to the start of the list
43 int offset, AttributeFactory attributeFactory) {
44 super(cf, definer, offset, attributeFactory);
42 MethodListParser(DirectClassFile cf, CstType definer, int offset, AttributeFactory attributeFactory) argument
/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/dexgen/src/com/android/dexgen/dex/file/
H A DAnnotationSetItem.java126 protected void place0(Section addedTo, int offset) { argument
146 int offset = item.getAbsoluteOffset();
150 Hex.u4(offset));
154 out.writeInt(offset);
H A DCatchStructs.java146 // Now write the lists out in order, noting the offset of each.
153 // Set the offset before we do any writing.
279 int offset = mapping.getValue();
283 offset - lastOffset, subPrefix, printTo, annotateTo);
287 lastOffset = offset;
300 * @param offset {@code >= 0;} the offset of this handler
307 int offset, int size, String prefix, PrintWriter printTo,
309 String s = handlers.toHuman(prefix, Hex.u2(offset) + ": ");
306 annotateAndConsumeHandlers(CatchHandlerList handlers, int offset, int size, String prefix, PrintWriter printTo, AnnotatedOutput annotateTo) argument
H A DDebugInfoItem.java72 protected void place0(Section addedTo, int offset) { argument
H A DEncodedArrayItem.java101 protected void place0(Section addedTo, int offset) { argument
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...]
H A DUniformListItem.java159 protected void place0(Section addedTo, int offset) { argument
160 offset += headerSize();
183 offset = i.place(addedTo, offset) + size;
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
H A DCstUtf8.java166 * @param offset the file offset
170 private static String throwBadUtf8(int value, int offset) { argument
172 " at offset " + Hex.u4(offset));

Completed in 1572 milliseconds

12345