Lines Matching refs:code
61 Bytecode code = new Bytecode(cp);
62 code.addAload(0);
65 regno += code.addLoad(regno, params[i]);
66 code.setMaxLocals(regno + 1); // the last parameter is added.
67 code.addInvokespecial(clazz, MethodInfo.nameInit, desc);
69 code.addReturn(null);
70 minfo.setCodeAttribute(code.toCodeAttribute());
90 * parameter type is <code>clazz</code>.
92 * <code>accDesc<code> must be identical to <code>desc</code>.
121 Bytecode code = new Bytecode(cp);
123 regno += code.addLoad(regno, params[i]);
125 code.setMaxLocals(regno);
127 code.addInvokestatic(clazz, name, desc);
129 code.addInvokevirtual(clazz, name, desc);
131 code.addReturn(Descriptor.getReturnType(desc, pool));
132 minfo.setCodeAttribute(code.toCodeAttribute());
173 Bytecode code = new Bytecode(cp);
175 code.addGetstatic(Bytecode.THIS, fieldName, fieldType);
178 code.addAload(0);
179 code.addGetfield(Bytecode.THIS, fieldName, fieldType);
180 code.setMaxLocals(1);
183 code.addReturn(Descriptor.toCtClass(fieldType, pool));
184 minfo.setCodeAttribute(code.toCodeAttribute());
224 Bytecode code = new Bytecode(cp);
227 reg = code.addLoad(0, Descriptor.toCtClass(fieldType, pool));
228 code.addPutstatic(Bytecode.THIS, fieldName, fieldType);
231 code.addAload(0);
232 reg = code.addLoad(1, Descriptor.toCtClass(fieldType, pool))
234 code.addPutfield(Bytecode.THIS, fieldName, fieldType);
237 code.addReturn(null);
238 code.setMaxLocals(reg);
239 minfo.setCodeAttribute(code.toCodeAttribute());