< prev index next >

test/hotspot/jtreg/compiler/jvmci/common/CTVMUtilities.java

Print this page
rev 52456 : imported patch asm.additional

*** 109,119 **** private final String targetName; private final String targetDesc; public ClassVisitorForLabels(ClassWriter cw, Map<Label, Integer> lines, Executable target) { ! super(Opcodes.ASM5, cw); this.lineNumbers = lines; StringBuilder builder = new StringBuilder("("); for (Parameter parameter : target.getParameters()) { builder.append(Utils.toJVMTypeSignature(parameter.getType())); --- 109,119 ---- private final String targetName; private final String targetDesc; public ClassVisitorForLabels(ClassWriter cw, Map<Label, Integer> lines, Executable target) { ! super(Opcodes.ASM7, cw); this.lineNumbers = lines; StringBuilder builder = new StringBuilder("("); for (Parameter parameter : target.getParameters()) { builder.append(Utils.toJVMTypeSignature(parameter.getType()));
*** 135,145 **** String desc, String signature, String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (targetDesc.equals(desc) && targetName.equals(name)) { ! return new MethodVisitor(Opcodes.ASM5, mv) { @Override public void visitLineNumber(int i, Label label) { super.visitLineNumber(i, label); lineNumbers.put(label, i); } --- 135,145 ---- String desc, String signature, String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (targetDesc.equals(desc) && targetName.equals(name)) { ! return new MethodVisitor(Opcodes.ASM7, mv) { @Override public void visitLineNumber(int i, Label label) { super.visitLineNumber(i, label); lineNumbers.put(label, i); }
< prev index next >