public class org.graalvm.compiler.api.directives.test.TinyInstrumentor implements jdk.internal.org.objectweb.asm.Opcodes
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.api.directives.test.TinyInstrumentor
super_class: java.lang.Object
{
private jdk.internal.org.objectweb.asm.tree.InsnList instrumentationInstructions;
descriptor: Ljdk/internal/org/objectweb/asm/tree/InsnList;
flags: (0x0002) ACC_PRIVATE
private int instrumentationMaxLocal;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/api/directives/test/TinyInstrumentor;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
aload 2
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.getMethodNode:(Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/tree/MethodNode;
astore 3
start local 3 2: getstatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.$assertionsDisabled:Z
ifne 3
aload 3
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode
StackMap stack:
getstatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.$assertionsDisabled:Z
ifne 4
aload 3
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.access:I
bipush 8
ior
ifne 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.$assertionsDisabled:Z
ifne 5
ldc "()V"
aload 3
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.desc:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 3
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.instructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.cloneInstructions:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljdk/internal/org/objectweb/asm/tree/InsnList;
putfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
6: aload 0
aload 3
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.maxLocals:I
putfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationMaxLocal:I
7: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 8: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.selectAll:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 15
StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode java.util.List top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 5
start local 5 10: aload 5
instanceof jdk.internal.org.objectweb.asm.tree.LineNumberNode
ifeq 13
11: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 5
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.remove:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
12: goto 15
StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode java.util.List jdk.internal.org.objectweb.asm.tree.AbstractInsnNode java.util.Iterator
StackMap stack:
13: aload 5
invokevirtual jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.getOpcode:()I
sipush 177
if_icmpne 15
14: aload 4
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 15: StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
16: new jdk.internal.org.objectweb.asm.tree.LabelNode
dup
invokespecial jdk.internal.org.objectweb.asm.tree.LabelNode.<init>:()V
astore 5
start local 5 17: aload 4
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 23
18: aload 4
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 6
start local 6 19: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.getLast:()Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
aload 6
if_acmpeq 21
20: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 6
new jdk.internal.org.objectweb.asm.tree.JumpInsnNode
dup
sipush 167
aload 5
invokespecial jdk.internal.org.objectweb.asm.tree.JumpInsnNode.<init>:(ILjdk/internal/org/objectweb/asm/tree/LabelNode;)V
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.insertBefore:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
21: StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode java.util.List jdk.internal.org.objectweb.asm.tree.LabelNode jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
StackMap stack:
aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 6
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.remove:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
end local 6 22: goto 28
23: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 27
StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode java.util.List jdk.internal.org.objectweb.asm.tree.LabelNode top java.util.Iterator
StackMap stack:
24: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 6
start local 6 25: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 6
new jdk.internal.org.objectweb.asm.tree.JumpInsnNode
dup
sipush 167
aload 5
invokespecial jdk.internal.org.objectweb.asm.tree.JumpInsnNode.<init>:(ILjdk/internal/org/objectweb/asm/tree/LabelNode;)V
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.insertBefore:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
26: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 6
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.remove:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
end local 6 27: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 24
28: StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.tree.MethodNode java.util.List jdk.internal.org.objectweb.asm.tree.LabelNode
StackMap stack:
aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 5
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.add:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
29: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/graalvm/compiler/api/directives/test/TinyInstrumentor;
0 30 1 instrumentationClass Ljava/lang/Class<*>;
0 30 2 methodName Ljava/lang/String;
2 30 3 instrumentationMethod Ljdk/internal/org/objectweb/asm/tree/MethodNode;
8 30 4 returnInstructions Ljava/util/List<Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;>;
10 15 5 instruction Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
17 30 5 exit Ljdk/internal/org/objectweb/asm/tree/LabelNode;
19 22 6 returnInstruction Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
25 27 6 returnInstruction Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)V
MethodParameters:
Name Flags
instrumentationClass
methodName
private static jdk.internal.org.objectweb.asm.tree.MethodNode getMethodNode(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/tree/MethodNode;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new jdk.internal.org.objectweb.asm.ClassReader
dup
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokespecial jdk.internal.org.objectweb.asm.ClassReader.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: new jdk.internal.org.objectweb.asm.tree.ClassNode
dup
invokespecial jdk.internal.org.objectweb.asm.tree.ClassNode.<init>:()V
astore 3
start local 3 2: aload 2
aload 3
iconst_4
invokevirtual jdk.internal.org.objectweb.asm.ClassReader.accept:(Ljdk/internal/org/objectweb/asm/ClassVisitor;I)V
3: aload 3
getfield jdk.internal.org.objectweb.asm.tree.ClassNode.methods:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: java.lang.Class java.lang.String jdk.internal.org.objectweb.asm.ClassReader jdk.internal.org.objectweb.asm.tree.ClassNode top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.MethodNode
astore 4
start local 4 5: aload 4
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.name:Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 4
areturn
end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 clazz Ljava/lang/Class<*>;
0 9 1 methodName Ljava/lang/String;
1 9 2 classReader Ljdk/internal/org/objectweb/asm/ClassReader;
2 9 3 classNode Ljdk/internal/org/objectweb/asm/tree/ClassNode;
5 7 4 methodNode Ljdk/internal/org/objectweb/asm/tree/MethodNode;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/tree/MethodNode;
MethodParameters:
Name Flags
clazz
methodName
private static jdk.internal.org.objectweb.asm.tree.ClassNode emptyClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/tree/ClassNode;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=5, args_size=1
start local 0 0: new jdk.internal.org.objectweb.asm.tree.ClassNode
dup
invokespecial jdk.internal.org.objectweb.asm.tree.ClassNode.<init>:()V
astore 1
start local 1 1: aload 1
bipush 52
bipush 33
aload 0
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
aconst_null
ldc "java/lang/Object"
iconst_0
anewarray java.lang.String
invokevirtual jdk.internal.org.objectweb.asm.tree.ClassNode.visit:(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
2: aload 1
iconst_1
ldc "<init>"
ldc "()V"
aconst_null
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.tree.ClassNode.visitMethod:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/MethodVisitor;
astore 2
start local 2 3: aload 2
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitCode:()V
4: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 3
start local 3 5: aload 2
aload 3
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
6: aload 2
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
7: aload 2
sipush 183
ldc "java/lang/Object"
ldc "<init>"
ldc "()V"
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
8: aload 2
sipush 177
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
9: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 4
start local 4 10: aload 2
aload 4
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
11: aload 2
iconst_1
iconst_1
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMaxs:(II)V
12: aload 2
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitEnd:()V
13: aload 1
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 name Ljava/lang/String;
1 14 1 classNode Ljdk/internal/org/objectweb/asm/tree/ClassNode;
3 14 2 mv Ljdk/internal/org/objectweb/asm/MethodVisitor;
5 14 3 l0 Ljdk/internal/org/objectweb/asm/Label;
10 14 4 l1 Ljdk/internal/org/objectweb/asm/Label;
MethodParameters:
Name Flags
name
private static java.lang.Iterable<jdk.internal.org.objectweb.asm.tree.AbstractInsnNode> selectAll(jdk.internal.org.objectweb.asm.tree.InsnList);
descriptor: (Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.graalvm.compiler.api.directives.test.TinyInstrumentor$1
dup
aload 0
invokespecial org.graalvm.compiler.api.directives.test.TinyInstrumentor$1.<init>:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 instructions Ljdk/internal/org/objectweb/asm/tree/InsnList;
Signature: (Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable<Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;>;
MethodParameters:
Name Flags
instructions
private static jdk.internal.org.objectweb.asm.tree.InsnList cloneInstructions(jdk.internal.org.objectweb.asm.tree.InsnList);
descriptor: (Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljdk/internal/org/objectweb/asm/tree/InsnList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.selectAll:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: jdk.internal.org.objectweb.asm.tree.InsnList java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 2
start local 2 3: aload 2
instanceof jdk.internal.org.objectweb.asm.tree.LabelNode
ifeq 7
4: new jdk.internal.org.objectweb.asm.tree.LabelNode
dup
new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
invokespecial jdk.internal.org.objectweb.asm.tree.LabelNode.<init>:(Ljdk/internal/org/objectweb/asm/Label;)V
astore 4
start local 4 5: aload 2
checkcast jdk.internal.org.objectweb.asm.tree.LabelNode
astore 5
start local 5 6: aload 1
aload 5
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: new jdk.internal.org.objectweb.asm.tree.InsnList
dup
invokespecial jdk.internal.org.objectweb.asm.tree.InsnList.<init>:()V
astore 2
start local 2 9: aload 0
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.selectAll:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: jdk.internal.org.objectweb.asm.tree.InsnList java.util.Map jdk.internal.org.objectweb.asm.tree.InsnList top java.util.Iterator
StackMap stack:
10: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 3
start local 3 11: aload 2
aload 3
aload 1
invokevirtual jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.clone:(Ljava/util/Map;)Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.add:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;)V
end local 3 12: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 instructions Ljdk/internal/org/objectweb/asm/tree/InsnList;
1 14 1 labelMap Ljava/util/Map<Ljdk/internal/org/objectweb/asm/tree/LabelNode;Ljdk/internal/org/objectweb/asm/tree/LabelNode;>;
3 7 2 instruction Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
5 7 4 clone Ljdk/internal/org/objectweb/asm/tree/LabelNode;
6 7 5 original Ljdk/internal/org/objectweb/asm/tree/LabelNode;
9 14 2 clone Ljdk/internal/org/objectweb/asm/tree/InsnList;
11 12 3 insn Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
MethodParameters:
Name Flags
instructions
private static void shiftLocalSlots(jdk.internal.org.objectweb.asm.tree.InsnList, int);
descriptor: (Ljdk/internal/org/objectweb/asm/tree/InsnList;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.selectAll:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: jdk.internal.org.objectweb.asm.tree.InsnList int top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 2
start local 2 2: aload 2
instanceof jdk.internal.org.objectweb.asm.tree.VarInsnNode
ifeq 6
3: aload 2
checkcast jdk.internal.org.objectweb.asm.tree.VarInsnNode
astore 4
start local 4 4: aload 4
dup
getfield jdk.internal.org.objectweb.asm.tree.VarInsnNode.var:I
iload 1
iadd
putfield jdk.internal.org.objectweb.asm.tree.VarInsnNode.var:I
end local 4 5: goto 9
StackMap locals: jdk.internal.org.objectweb.asm.tree.InsnList int jdk.internal.org.objectweb.asm.tree.AbstractInsnNode java.util.Iterator
StackMap stack:
6: aload 2
instanceof jdk.internal.org.objectweb.asm.tree.IincInsnNode
ifeq 9
7: aload 2
checkcast jdk.internal.org.objectweb.asm.tree.IincInsnNode
astore 4
start local 4 8: aload 4
dup
getfield jdk.internal.org.objectweb.asm.tree.IincInsnNode.var:I
iload 1
iadd
putfield jdk.internal.org.objectweb.asm.tree.IincInsnNode.var:I
end local 4 end local 2 9: StackMap locals: jdk.internal.org.objectweb.asm.tree.InsnList int top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 instructions Ljdk/internal/org/objectweb/asm/tree/InsnList;
0 11 1 offset I
2 9 2 insn Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
4 5 4 varInsn Ljdk/internal/org/objectweb/asm/tree/VarInsnNode;
8 9 4 iincInsn Ljdk/internal/org/objectweb/asm/tree/IincInsnNode;
MethodParameters:
Name Flags
instructions
offset
public java.lang.Class<?> instrument(java.lang.Class<?>, java.lang.String, int);
descriptor: (Ljava/lang/Class;Ljava/lang/String;I)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
iload 3
iconst_1
invokevirtual org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrument:(Ljava/lang/Class;Ljava/lang/String;IZ)Ljava/lang/Class;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/api/directives/test/TinyInstrumentor;
0 1 1 targetClass Ljava/lang/Class<*>;
0 1 2 methodName Ljava/lang/String;
0 1 3 opcode I
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;I)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
targetClass
methodName
opcode
public java.lang.Class<?> instrument(java.lang.Class<?>, java.lang.String, int, boolean);
descriptor: (Ljava/lang/Class;Ljava/lang/String;IZ)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "$$"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 1: aload 5
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.emptyClass:(Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/tree/ClassNode;
astore 6
start local 6 2: aload 1
aload 2
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.getMethodNode:(Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/tree/MethodNode;
astore 7
start local 7 3: new jdk.internal.org.objectweb.asm.tree.MethodNode
dup
aload 7
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.access:I
aload 7
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.name:Ljava/lang/String;
aload 7
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.desc:Ljava/lang/String;
aload 7
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.signature:Ljava/lang/String;
aload 7
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.exceptions:Ljava/util/List;
aload 7
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.exceptions:Ljava/util/List;
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
invokespecial jdk.internal.org.objectweb.asm.tree.MethodNode.<init>:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
astore 8
start local 8 4: aload 7
aload 8
invokevirtual jdk.internal.org.objectweb.asm.tree.MethodNode.accept:(Ljdk/internal/org/objectweb/asm/MethodVisitor;)V
5: aload 6
getfield jdk.internal.org.objectweb.asm.tree.ClassNode.methods:Ljava/util/List;
aload 8
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 8
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.instructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.selectAll:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 10
goto 16
StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String int int java.lang.String jdk.internal.org.objectweb.asm.tree.ClassNode jdk.internal.org.objectweb.asm.tree.MethodNode jdk.internal.org.objectweb.asm.tree.MethodNode top java.util.Iterator
StackMap stack:
7: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.org.objectweb.asm.tree.AbstractInsnNode
astore 9
start local 9 8: aload 9
invokevirtual jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.getOpcode:()I
iload 3
if_icmpne 16
9: aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationInstructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.cloneInstructions:(Ljdk/internal/org/objectweb/asm/tree/InsnList;)Ljdk/internal/org/objectweb/asm/tree/InsnList;
astore 11
start local 11 10: aload 11
aload 8
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.maxLocals:I
invokestatic org.graalvm.compiler.api.directives.test.TinyInstrumentor.shiftLocalSlots:(Ljdk/internal/org/objectweb/asm/tree/InsnList;I)V
11: aload 8
dup
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.maxLocals:I
aload 0
getfield org.graalvm.compiler.api.directives.test.TinyInstrumentor.instrumentationMaxLocal:I
iadd
putfield jdk.internal.org.objectweb.asm.tree.MethodNode.maxLocals:I
12: iload 4
ifeq 15
13: aload 8
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.instructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 9
aload 11
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.insert:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;Ljdk/internal/org/objectweb/asm/tree/InsnList;)V
14: goto 16
15: StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String int int java.lang.String jdk.internal.org.objectweb.asm.tree.ClassNode jdk.internal.org.objectweb.asm.tree.MethodNode jdk.internal.org.objectweb.asm.tree.MethodNode jdk.internal.org.objectweb.asm.tree.AbstractInsnNode java.util.Iterator jdk.internal.org.objectweb.asm.tree.InsnList
StackMap stack:
aload 8
getfield jdk.internal.org.objectweb.asm.tree.MethodNode.instructions:Ljdk/internal/org/objectweb/asm/tree/InsnList;
aload 9
aload 11
invokevirtual jdk.internal.org.objectweb.asm.tree.InsnList.insertBefore:(Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;Ljdk/internal/org/objectweb/asm/tree/InsnList;)V
end local 11 end local 9 16: StackMap locals: org.graalvm.compiler.api.directives.test.TinyInstrumentor java.lang.Class java.lang.String int int java.lang.String jdk.internal.org.objectweb.asm.tree.ClassNode jdk.internal.org.objectweb.asm.tree.MethodNode jdk.internal.org.objectweb.asm.tree.MethodNode top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
17: new jdk.internal.org.objectweb.asm.ClassWriter
dup
iconst_2
invokespecial jdk.internal.org.objectweb.asm.ClassWriter.<init>:(I)V
astore 9
start local 9 18: aload 6
aload 9
invokevirtual jdk.internal.org.objectweb.asm.tree.ClassNode.accept:(Ljdk/internal/org/objectweb/asm/ClassVisitor;)V
19: aload 9
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.toByteArray:()[B
astore 10
start local 10 20: new org.graalvm.compiler.api.directives.test.TinyInstrumentor$Loader
dup
aload 5
aload 10
invokespecial org.graalvm.compiler.api.directives.test.TinyInstrumentor$Loader.<init>:(Ljava/lang/String;[B)V
aload 5
invokevirtual org.graalvm.compiler.api.directives.test.TinyInstrumentor$Loader.findClass:(Ljava/lang/String;)Ljava/lang/Class;
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/graalvm/compiler/api/directives/test/TinyInstrumentor;
0 21 1 targetClass Ljava/lang/Class<*>;
0 21 2 methodName Ljava/lang/String;
0 21 3 opcode I
0 21 4 insertAfter Z
1 21 5 className Ljava/lang/String;
2 21 6 classNode Ljdk/internal/org/objectweb/asm/tree/ClassNode;
3 21 7 methodNode Ljdk/internal/org/objectweb/asm/tree/MethodNode;
4 21 8 newMethodNode Ljdk/internal/org/objectweb/asm/tree/MethodNode;
8 16 9 instruction Ljdk/internal/org/objectweb/asm/tree/AbstractInsnNode;
10 16 11 instrumentation Ljdk/internal/org/objectweb/asm/tree/InsnList;
18 21 9 classWriter Ljdk/internal/org/objectweb/asm/ClassWriter;
20 21 10 bytes [B
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;IZ)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
targetClass
methodName
opcode
insertAfter
}
SourceFile: "TinyInstrumentor.java"
NestMembers:
org.graalvm.compiler.api.directives.test.TinyInstrumentor$1 org.graalvm.compiler.api.directives.test.TinyInstrumentor$Loader
InnerClasses:
org.graalvm.compiler.api.directives.test.TinyInstrumentor$1
private Loader = org.graalvm.compiler.api.directives.test.TinyInstrumentor$Loader of org.graalvm.compiler.api.directives.test.TinyInstrumentor