Lines Matching full:opcode
41 static void rewriteInstField(Method* method, u2* insns, Opcode quickOpc,
42 Opcode volatileOpc);
43 static void rewriteStaticField(Method* method, u2* insns, Opcode volatileOpc);
44 static void rewriteVirtualInvoke(Method* method, u2* insns, Opcode newOpc);
164 Opcode opc, quickOpc, volatileOpc;
372 * Update an instruction's opcode.
374 * If "opcode" is an 8-bit op, we just replace that portion. If it's a
375 * 16-bit op, we convert the opcode from "packed" form (e.g. 0x0108) to
378 static inline void updateOpcode(const Method* meth, u2* ptr, u2 opcode)
380 if (opcode >= 256) {
381 /* opcode low byte becomes high byte, low byte becomes 0xff */
383 dvmUpdateCodeUnit(meth, ptr, (opcode << 8) | 0x00ff);
387 dvmUpdateCodeUnit(meth, ptr, (ptr[0] & 0xff00) | opcode);
668 * we want to replace the opcode with "quickOpc" and replace CCCC with
670 * we just want to replace the opcode with "volatileOpc".
678 static void rewriteInstField(Method* method, u2* insns, Opcode quickOpc,
679 Opcode volatileOpc)
714 * the target field is volatile, we replace the opcode with "volatileOpc".
718 static void rewriteStaticField0(Method* method, u2* insns, Opcode volatileOpc,
742 static void rewriteStaticField(Method* method, u2* insns, Opcode volatileOpc)
889 static void rewriteVirtualInvoke(Method* method, u2* insns, Opcode newOpc)
955 * just replace the opcode, but if it was an invoke-direct we