Home | History | Annotate | Download | only in examples

Lines Matching defs:code

19 import com.android.dx.Code;
46 // Execute our newly-generated code in-process.
69 // Declare that method on the dexMaker. Use the returned Code instance
71 Code code = dexMaker.declare(hello, Modifier.STATIC | Modifier.PUBLIC);
74 Local<Integer> a = code.newLocal(TypeId.INT);
75 Local<Integer> b = code.newLocal(TypeId.INT);
76 Local<Integer> c = code.newLocal(TypeId.INT);
77 Local<String> s = code.newLocal(TypeId.STRING);
78 Local<PrintStream> localSystemOut = code.newLocal(printStreamType);
81 code.loadConstant(a, 0xabcd);
84 code.loadConstant(b, 0xaaaa);
87 code.op(BinaryOp.SUBTRACT, c, a, b);
92 code.invokeStatic(toHexString, s, c);
96 code.sget(systemOutField, localSystemOut);
99 code.invokeVirtual(printlnMethod, null, localSystemOut, s);
102 code.returnVoid();