Lines Matching refs:Opcodes

34 import org.objectweb.asm.Opcodes;
70 new ClassVisitor(Opcodes.ASM5, cw) { in generateTest()
96 Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "main", "([Ljava/lang/String;)V", null, null); in generateMethodMain()
98 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "1", "test1", "()V", false); in generateMethodMain()
99 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "2", "test2", "()V", false); in generateMethodMain()
100 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "3", "test3", "()V", false); in generateMethodMain()
102 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "5", "test5", "()V", false); in generateMethodMain()
103 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "6", "test6", "()V", false); in generateMethodMain()
104 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "7", "test7", "()V", false); in generateMethodMain()
105 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName + "8", "test8", "()V", false); in generateMethodMain()
107 mv.visitInsn(Opcodes.RETURN); in generateMethodMain()
117 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test1", "()V", null, null); in generateMethodTest1()
123 Opcodes.H_INVOKESTATIC, in generateMethodTest1()
129 mv.visitInsn(Opcodes.RETURN); in generateMethodTest1()
139 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test2", "()V", null, null); in generateMethodTest2()
145 Opcodes.H_INVOKESTATIC, in generateMethodTest2()
160 mv.visitInsn(Opcodes.RETURN); in generateMethodTest2()
170 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test3", "()V", null, null); in generateMethodTest3()
183 Opcodes.H_INVOKESTATIC, in generateMethodTest3()
196 mv.visitInsn(Opcodes.RETURN); in generateMethodTest3()
206 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test4", "()V", null, null); in generateMethodTest4()
216 Opcodes.H_INVOKESTATIC, in generateMethodTest4()
221 mv.visitTypeInsn(Opcodes.NEW, Type.getInternalName(InvokeCustom.class)); in generateMethodTest4()
222 mv.visitInsn(Opcodes.DUP); in generateMethodTest4()
224 Opcodes.INVOKESPECIAL, Type.getInternalName(InvokeCustom.class), "<init>", "()V", false); in generateMethodTest4()
230 Opcodes.H_INVOKESPECIAL, in generateMethodTest4()
235 mv.visitInsn(Opcodes.RETURN); in generateMethodTest4()
245 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test5", "()V", null, null); in generateMethodTest5()
251 Opcodes.H_INVOKESTATIC, in generateMethodTest5()
256 mv.visitIntInsn(Opcodes.SIPUSH, 1000); in generateMethodTest5()
257 mv.visitIntInsn(Opcodes.SIPUSH, -923); in generateMethodTest5()
258 mv.visitIntInsn(Opcodes.SIPUSH, 77); in generateMethodTest5()
260 mv.visitVarInsn(Opcodes.ISTORE, 0); in generateMethodTest5()
261 mv.visitFieldInsn(Opcodes.GETSTATIC, "java/lang/System", "out", "Ljava/io/PrintStream;"); in generateMethodTest5()
262 mv.visitTypeInsn(Opcodes.NEW, "java/lang/StringBuilder"); in generateMethodTest5()
263 mv.visitInsn(Opcodes.DUP); in generateMethodTest5()
264 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/StringBuilder", "<init>", "()V"); in generateMethodTest5()
267 Opcodes.INVOKEVIRTUAL, in generateMethodTest5()
271 mv.visitVarInsn(Opcodes.ILOAD, 0); in generateMethodTest5()
273 Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", "(I)Ljava/lang/StringBuilder;"); in generateMethodTest5()
275 Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); in generateMethodTest5()
277 Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", "(Ljava/lang/String;)V"); in generateMethodTest5()
278 mv.visitInsn(Opcodes.RETURN); in generateMethodTest5()
288 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test6", "()V", null, null); in generateMethodTest6()
294 Opcodes.H_INVOKESTATIC, in generateMethodTest6()
303 mv.visitVarInsn(Opcodes.LSTORE, 0); in generateMethodTest6()
304 mv.visitFieldInsn(Opcodes.GETSTATIC, "java/lang/System", "out", "Ljava/io/PrintStream;"); in generateMethodTest6()
305 mv.visitTypeInsn(Opcodes.NEW, "java/lang/StringBuilder"); in generateMethodTest6()
306 mv.visitInsn(Opcodes.DUP); in generateMethodTest6()
307 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/StringBuilder", "<init>", "()V"); in generateMethodTest6()
310 Opcodes.INVOKEVIRTUAL, in generateMethodTest6()
314 mv.visitVarInsn(Opcodes.LLOAD, 0); in generateMethodTest6()
316 Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", "(J)Ljava/lang/StringBuilder;"); in generateMethodTest6()
318 Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); in generateMethodTest6()
320 Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", "(Ljava/lang/String;)V"); in generateMethodTest6()
321 mv.visitInsn(Opcodes.RETURN); in generateMethodTest6()
331 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test7", "()V", null, null); in generateMethodTest7()
337 Opcodes.H_INVOKESTATIC, in generateMethodTest7()
348 mv.visitVarInsn(Opcodes.DSTORE, 0); in generateMethodTest7()
349 mv.visitFieldInsn(Opcodes.GETSTATIC, "java/lang/System", "out", "Ljava/io/PrintStream;"); in generateMethodTest7()
350 mv.visitTypeInsn(Opcodes.NEW, "java/lang/StringBuilder"); in generateMethodTest7()
351 mv.visitInsn(Opcodes.DUP); in generateMethodTest7()
352 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/StringBuilder", "<init>", "()V"); in generateMethodTest7()
355 Opcodes.INVOKEVIRTUAL, in generateMethodTest7()
359 mv.visitVarInsn(Opcodes.DLOAD, 0); in generateMethodTest7()
361 Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", "(D)Ljava/lang/StringBuilder;"); in generateMethodTest7()
363 Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", "()Ljava/lang/String;"); in generateMethodTest7()
365 Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", "(Ljava/lang/String;)V"); in generateMethodTest7()
366 mv.visitInsn(Opcodes.RETURN); in generateMethodTest7()
376 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test8", "()V", null, null); in generateMethodTest8()
385 Opcodes.H_INVOKESTATIC, in generateMethodTest8()
395 Opcodes.H_INVOKESTATIC, in generateMethodTest8()
406 mv.visitInsn(Opcodes.RETURN); in generateMethodTest8()
413 cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test9", "()V", null, null); in generateMethodTest9()
430 Opcodes.H_INVOKESTATIC, in generateMethodTest9()
436 new Handle(Opcodes.H_GETSTATIC, internalName, "staticFieldTest9", "I", false); in generateMethodTest9()
438 new Handle(Opcodes.H_PUTSTATIC, internalName, "staticFieldTest9", "I", false); in generateMethodTest9()
439 Handle setter = new Handle(Opcodes.H_GETFIELD, internalName, "fieldTest9", "F", false); in generateMethodTest9()
440 Handle getter = new Handle(Opcodes.H_PUTFIELD, internalName, "fieldTest9", "F", false); in generateMethodTest9()
442 new Handle(Opcodes.H_INVOKEVIRTUAL, internalName, "helperMethodTest9", "()V", false); in generateMethodTest9()
445 new Handle(Opcodes.H_NEWINVOKESPECIAL, internalName, "<init>", "(I)V", false); in generateMethodTest9()
448 Opcodes.H_INVOKEINTERFACE, Type.getInternalName(Runnable.class), "run", "()V", true); in generateMethodTest9()
461 mv.visitInsn(Opcodes.RETURN); in generateMethodTest9()