Home | History | Annotate | Download | only in analysis

Lines Matching refs:opcode

41 static void rewriteInstField(Method* method, u2* insns, Opcode quickOpc,
42 Opcode volatileOpc);
44 Opcode volatileOpc);
45 static void rewriteStaticField(Method* method, u2* insns, Opcode volatileOpc);
47 Opcode volatileOpc);
48 static void rewriteVirtualInvoke(Method* method, u2* insns, Opcode newOpc);
168 Opcode opc, quickOpc, volatileOpc;
449 * Update an instruction's opcode.
451 * If "opcode" is an 8-bit op, we just replace that portion. If it's a
452 * 16-bit op, we convert the opcode from "packed" form (e.g. 0x0108) to
455 static inline void updateOpcode(const Method* meth, u2* ptr, Opcode opcode)
457 if (opcode >= 256) {
458 /* opcode low byte becomes high byte, low byte becomes 0xff */
460 dvmUpdateCodeUnit(meth, ptr, (u2) (opcode << 8) | 0x00ff);
464 dvmUpdateCodeUnit(meth, ptr, (ptr[0] & 0xff00) | (u2) opcode);
745 * we want to replace the opcode with "quickOpc" and replace CCCC with
747 * we just want to replace the opcode with "volatileOpc".
755 static void rewriteInstField(Method* method, u2* insns, Opcode quickOpc,
756 Opcode volatileOpc)
791 * the target field is volatile, we replace the opcode with "volatileOpc".
795 static void rewriteJumboInstField(Method* method, u2* insns, Opcode volatileOpc)
824 * the target field is volatile, we replace the opcode with "volatileOpc".
828 static void rewriteStaticField0(Method* method, u2* insns, Opcode volatileOpc,
852 static void rewriteStaticField(Method* method, u2* insns, Opcode volatileOpc)
858 Opcode volatileOpc)
1006 static void rewriteVirtualInvoke(Method* method, u2* insns, Opcode newOpc)
1072 * just replace the opcode, but if it was an invoke-direct we