Lines Matching refs:mv

77     MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC,  in generateMethodMain()  local
80 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test1", "()V", false); in generateMethodMain()
81 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test2", "()V", false); in generateMethodMain()
82 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test3", "()V", false); in generateMethodMain()
83 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test4", "()V", false); in generateMethodMain()
84 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test5", "()V", false); in generateMethodMain()
85 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test6", "()V", false); in generateMethodMain()
86 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test7", "()V", false); in generateMethodMain()
87 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test8", "()V", false); in generateMethodMain()
88 mv.visitMethodInsn(Opcodes.INVOKESTATIC, internalName, "test9", "()V", false); in generateMethodMain()
89 mv.visitInsn(Opcodes.RETURN); in generateMethodMain()
90 mv.visitMaxs(-1, -1); in generateMethodMain()
98 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test1", "()V", in generateMethodTest1() local
104 mv.visitInvokeDynamicInsn("targetMethodTest1", "()V", bootstrap); in generateMethodTest1()
105 mv.visitInsn(Opcodes.RETURN); in generateMethodTest1()
106 mv.visitMaxs(-1, -1); in generateMethodTest1()
114 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test2", "()V", in generateMethodTest2() local
120 mv.visitLdcInsn(new Boolean(true)); in generateMethodTest2()
121 mv.visitLdcInsn(new Byte((byte) 127)); in generateMethodTest2()
122 mv.visitLdcInsn(new Character('c')); in generateMethodTest2()
123 mv.visitLdcInsn(new Short((short) 1024)); in generateMethodTest2()
124 mv.visitLdcInsn(new Integer(123456)); in generateMethodTest2()
125 mv.visitLdcInsn(new Float(1.2f)); in generateMethodTest2()
126 mv.visitLdcInsn(new Long(123456789)); in generateMethodTest2()
127 mv.visitLdcInsn(new Double(3.5123456789)); in generateMethodTest2()
128 mv.visitLdcInsn("String"); in generateMethodTest2()
129 mv.visitInvokeDynamicInsn("targetMethodTest2", "(ZBCSIFJDLjava/lang/String;)V", bootstrap); in generateMethodTest2()
130 mv.visitInsn(Opcodes.RETURN); in generateMethodTest2()
131 mv.visitMaxs(-1, -1); in generateMethodTest2()
139 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test3", "()V", in generateMethodTest3() local
146 mv.visitInvokeDynamicInsn("targetMethodTest3", "()V", bootstrap, new Integer(1), in generateMethodTest3()
148 mv.visitInsn(Opcodes.RETURN); in generateMethodTest3()
149 mv.visitMaxs(-1, -1); in generateMethodTest3()
157 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test4", "()V", in generateMethodTest4() local
168 mv.visitTypeInsn(Opcodes.NEW, Type.getInternalName(InvokeCustom.class)); in generateMethodTest4()
169 mv.visitInsn(Opcodes.DUP); in generateMethodTest4()
170 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, Type.getInternalName(InvokeCustom.class), in generateMethodTest4()
172 mv.visitInvokeDynamicInsn("targetMethodTest4", "(Linvokecustom/InvokeCustom;)V", bootstrap, in generateMethodTest4()
175 mv.visitInsn(Opcodes.RETURN); in generateMethodTest4()
176 mv.visitMaxs(-1, -1); in generateMethodTest4()
184 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test5", "()V", in generateMethodTest5() local
190 mv.visitIntInsn(Opcodes.SIPUSH, 1000); in generateMethodTest5()
191 mv.visitIntInsn(Opcodes.SIPUSH, -923); in generateMethodTest5()
192 mv.visitIntInsn(Opcodes.SIPUSH, 77); in generateMethodTest5()
193 mv.visitInvokeDynamicInsn("targetMethodTest5", "(III)I", bootstrap); in generateMethodTest5()
194 mv.visitVarInsn(Opcodes.ISTORE, 0); in generateMethodTest5()
195 mv.visitFieldInsn(Opcodes.GETSTATIC, "java/lang/System", "out", "Ljava/io/PrintStream;"); in generateMethodTest5()
196 mv.visitTypeInsn(Opcodes.NEW, "java/lang/StringBuilder"); in generateMethodTest5()
197 mv.visitInsn(Opcodes.DUP); in generateMethodTest5()
198 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/StringBuilder", "<init>", "()V"); in generateMethodTest5()
199 mv.visitLdcInsn("targetMethodTest5 returned: "); in generateMethodTest5()
200 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", in generateMethodTest5()
202 mv.visitVarInsn(Opcodes.ILOAD, 0); in generateMethodTest5()
203 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", in generateMethodTest5()
205 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", in generateMethodTest5()
207 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", in generateMethodTest5()
209 mv.visitInsn(Opcodes.RETURN); in generateMethodTest5()
210 mv.visitMaxs(-1, -1); in generateMethodTest5()
218 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test6", "()V", in generateMethodTest6() local
224 mv.visitLdcInsn(0x77777777777l); in generateMethodTest6()
225 mv.visitLdcInsn(-0x11111111111l); in generateMethodTest6()
226 mv.visitLdcInsn(0x66666666666l); in generateMethodTest6()
227 mv.visitInvokeDynamicInsn("targetMethodTest6", "(JJJ)J", bootstrap); in generateMethodTest6()
228 mv.visitVarInsn(Opcodes.LSTORE, 0); in generateMethodTest6()
229 mv.visitFieldInsn(Opcodes.GETSTATIC, "java/lang/System", "out", "Ljava/io/PrintStream;"); in generateMethodTest6()
230 mv.visitTypeInsn(Opcodes.NEW, "java/lang/StringBuilder"); in generateMethodTest6()
231 mv.visitInsn(Opcodes.DUP); in generateMethodTest6()
232 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/StringBuilder", "<init>", "()V"); in generateMethodTest6()
233 mv.visitLdcInsn("targetMethodTest6 returned: "); in generateMethodTest6()
234 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", in generateMethodTest6()
236 mv.visitVarInsn(Opcodes.LLOAD, 0); in generateMethodTest6()
237 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", in generateMethodTest6()
239 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", in generateMethodTest6()
241 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", in generateMethodTest6()
243 mv.visitInsn(Opcodes.RETURN); in generateMethodTest6()
244 mv.visitMaxs(-1, -1); in generateMethodTest6()
252 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test7", "()V", in generateMethodTest7() local
260 mv.visitLdcInsn((float) x); in generateMethodTest7()
261 mv.visitLdcInsn((float) y); in generateMethodTest7()
262 mv.visitLdcInsn(x * y); in generateMethodTest7()
263 mv.visitInvokeDynamicInsn("targetMethodTest7", "(FFD)D", bootstrap); in generateMethodTest7()
264 mv.visitVarInsn(Opcodes.DSTORE, 0); in generateMethodTest7()
265 mv.visitFieldInsn(Opcodes.GETSTATIC, "java/lang/System", "out", "Ljava/io/PrintStream;"); in generateMethodTest7()
266 mv.visitTypeInsn(Opcodes.NEW, "java/lang/StringBuilder"); in generateMethodTest7()
267 mv.visitInsn(Opcodes.DUP); in generateMethodTest7()
268 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/StringBuilder", "<init>", "()V"); in generateMethodTest7()
269 mv.visitLdcInsn("targetMethodTest6 returned: "); in generateMethodTest7()
270 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", in generateMethodTest7()
272 mv.visitVarInsn(Opcodes.DLOAD, 0); in generateMethodTest7()
273 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "append", in generateMethodTest7()
275 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/lang/StringBuilder", "toString", in generateMethodTest7()
277 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/io/PrintStream", "println", in generateMethodTest7()
279 mv.visitInsn(Opcodes.RETURN); in generateMethodTest7()
280 mv.visitMaxs(-1, -1); in generateMethodTest7()
288 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test8", "()V", in generateMethodTest8() local
297 mv.visitLdcInsn("First invokedynamic invocation"); in generateMethodTest8()
298 mv.visitInvokeDynamicInsn("targetMethodTest8", "(Ljava/lang/String;)V", bootstrap1); in generateMethodTest8()
302 mv.visitLdcInsn("Second invokedynamic invocation"); in generateMethodTest8()
303 mv.visitInvokeDynamicInsn("targetMethodTest8", "(Ljava/lang/String;)V", bootstrap2); in generateMethodTest8()
306 mv.visitLdcInsn("Dupe first invokedynamic invocation"); in generateMethodTest8()
307 mv.visitInvokeDynamicInsn("targetMethodTest8", "(Ljava/lang/String;)V", bootstrap1); in generateMethodTest8()
308 mv.visitInsn(Opcodes.RETURN); in generateMethodTest8()
309 mv.visitMaxs(-1, -1); in generateMethodTest8()
316 MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC, "test9", "()V", in generateMethodTest9() local
348 mv.visitInvokeDynamicInsn("targetMethodTest9", "()V", bootstrap, in generateMethodTest9()
353 mv.visitInsn(Opcodes.RETURN); in generateMethodTest9()
354 mv.visitMaxs(-1, -1); in generateMethodTest9()