< prev index next >

test/jdk/jdk/jfr/event/compiler/TestCompilerInlining.java

Print this page
rev 52456 : imported patch asm.additional

*** 370,380 **** cr = new ClassReader(aClass.getName()); } catch (IOException e) { throw new Error("TESTBUG : unexpected IOE during class reading", e); } cw = new ClassWriter(cr, 0); ! ClassVisitor cv = new ClassVisitor(Opcodes.ASM5, cw) { @Override public MethodVisitor visitMethod(int access, String name, String desc, String descriptor, String[] exceptions) { System.out.println("Method: " +name); MethodVisitor mv = super.visitMethod(access, name, desc, descriptor, exceptions); return new CallTracer(aClass, name, desc, mv, calls); --- 370,380 ---- cr = new ClassReader(aClass.getName()); } catch (IOException e) { throw new Error("TESTBUG : unexpected IOE during class reading", e); } cw = new ClassWriter(cr, 0); ! ClassVisitor cv = new ClassVisitor(Opcodes.ASM7, cw) { @Override public MethodVisitor visitMethod(int access, String name, String desc, String descriptor, String[] exceptions) { System.out.println("Method: " +name); MethodVisitor mv = super.visitMethod(access, name, desc, descriptor, exceptions); return new CallTracer(aClass, name, desc, mv, calls);
*** 388,398 **** private static class CallTracer extends MethodVisitor { private final MethodDesc caller; private Collection<Call> calls; public CallTracer(Class<?> aClass, String name, String desc, MethodVisitor mv, Collection<Call> calls) { ! super(Opcodes.ASM5, mv); caller = new MethodDesc(aClass.getName(), name, desc); this.calls = calls; } @Override --- 388,398 ---- private static class CallTracer extends MethodVisitor { private final MethodDesc caller; private Collection<Call> calls; public CallTracer(Class<?> aClass, String name, String desc, MethodVisitor mv, Collection<Call> calls) { ! super(Opcodes.ASM7, mv); caller = new MethodDesc(aClass.getName(), name, desc); this.calls = calls; } @Override
< prev index next >