Lines Matching refs:code
813 abstract int compile(CtClass type, String name, Bytecode code, in compile() argument
819 Bytecode code, Javac drv) throws CannotCompileException; in compileIfStatic() argument
829 int compile(CtClass type, String name, Bytecode code, in compile() argument
834 code.addAload(0); in compile()
836 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
837 return code.getMaxStack(); in compile()
844 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
849 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
850 return code.getMaxStack(); in compileIfStatic()
929 int compile(CtClass type, String name, Bytecode code, in compile() argument
934 code.addAload(0); in compile()
936 int s = code.addLoad(nth, type) + 1; in compile()
937 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
973 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
994 int compile(CtClass type, String name, Bytecode code, in compile() argument
1000 code.addAload(0); in compile()
1001 code.addNew(objectType); in compile()
1002 code.add(Bytecode.DUP); in compile()
1003 code.addAload(0); in compile()
1008 stacksize = compileStringParameter(code) + 4; in compile()
1011 stacksize += CtNewWrappedMethod.compileParameterList(code, in compile()
1014 code.addInvokespecial(objectType, "<init>", getDescriptor()); in compile()
1015 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1038 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1043 code.addNew(objectType); in compileIfStatic()
1044 code.add(Bytecode.DUP); in compileIfStatic()
1051 stacksize += compileStringParameter(code); in compileIfStatic()
1054 code.addInvokespecial(objectType, "<init>", desc); in compileIfStatic()
1055 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1059 protected final int compileStringParameter(Bytecode code) in compileStringParameter() argument
1063 code.addIconst(nparam); in compileStringParameter()
1064 code.addAnewarray(javaLangString); in compileStringParameter()
1066 code.add(Bytecode.DUP); // dup in compileStringParameter()
1067 code.addIconst(j); // iconst_<j> in compileStringParameter()
1068 code.addLdc(stringParams[j]); // ldc ... in compileStringParameter()
1069 code.add(Bytecode.AASTORE); // aastore in compileStringParameter()
1090 int compile(CtClass type, String name, Bytecode code, in compile() argument
1096 code.addAload(0); in compile()
1097 code.addAload(0); in compile()
1102 stacksize = compileStringParameter(code) + 2; in compile()
1105 stacksize += CtNewWrappedMethod.compileParameterList(code, in compile()
1110 code.addInvokestatic(objectType, methodName, mDesc); in compile()
1111 code.addPutfield(Bytecode.THIS, name, typeDesc); in compile()
1134 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1144 stacksize += compileStringParameter(code); in compileIfStatic()
1148 code.addInvokestatic(objectType, methodName, desc + typeDesc); in compileIfStatic()
1149 code.addPutstatic(Bytecode.THIS, name, typeDesc); in compileIfStatic()
1165 int compile(CtClass type, String name, Bytecode code, in compile() argument
1169 code.addAload(0); in compile()
1170 code.addIconst(value); in compile()
1171 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1175 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1178 code.addIconst(value); in compileIfStatic()
1179 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1198 int compile(CtClass type, String name, Bytecode code, in compile() argument
1202 code.addAload(0); in compile()
1203 code.addLdc2w(value); in compile()
1204 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1208 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1211 code.addLdc2w(value); in compileIfStatic()
1212 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1234 int compile(CtClass type, String name, Bytecode code, in compile() argument
1238 code.addAload(0); in compile()
1239 code.addFconst(value); in compile()
1240 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1244 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1247 code.addFconst(value); in compileIfStatic()
1248 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1270 int compile(CtClass type, String name, Bytecode code, in compile() argument
1274 code.addAload(0); in compile()
1275 code.addLdc2w(value); in compile()
1276 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1280 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1283 code.addLdc2w(value); in compileIfStatic()
1284 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1301 int compile(CtClass type, String name, Bytecode code, in compile() argument
1305 code.addAload(0); in compile()
1306 code.addLdc(value); in compile()
1307 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1311 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1314 code.addLdc(value); in compileIfStatic()
1315 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1333 private void addNewarray(Bytecode code) { in addNewarray() argument
1335 code.addNewarray(((CtPrimitiveType)type).getArrayType(), in addNewarray()
1338 code.addAnewarray(type, size); in addNewarray()
1341 int compile(CtClass type, String name, Bytecode code, in compile() argument
1345 code.addAload(0); in compile()
1346 addNewarray(code); in compile()
1347 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1351 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1354 addNewarray(code); in compileIfStatic()
1355 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()
1371 int compile(CtClass type, String name, Bytecode code, in compile() argument
1375 code.addAload(0); in compile()
1376 int s = code.addMultiNewarray(type, dim); in compile()
1377 code.addPutfield(Bytecode.THIS, name, Descriptor.of(type)); in compile()
1381 int compileIfStatic(CtClass type, String name, Bytecode code, in compileIfStatic() argument
1384 int s = code.addMultiNewarray(type, dim); in compileIfStatic()
1385 code.addPutstatic(Bytecode.THIS, name, Descriptor.of(type)); in compileIfStatic()