desc(MethodHandle.class, MethodHandle.class, int.class, Object[].class)));
topOfStack(MethodHandle.class);
}
static void printASM(byte[] bytes, Method method) {
ASMifier asm = new ASMifier();
PrintWriter pw = new PrintWriter(err);
TraceClassVisitor printer = new TraceClassVisitor(null, asm, pw);
if (method == null)
new ClassReader(bytes).accept(printer, SKIP_DEBUG);
else {
ClassNode cn = new ClassNode();
new ClassReader(bytes).accept(cn, SKIP_DEBUG);
find(cn.methods.stream(), mn -> mn.name.equals(method.getName())).accept(printer);
asm.print(pw);
pw.flush();
}
}