public class org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalUtil;
public static java.lang.reflect.Method getMethod(java.lang.Class<?>, java.lang.String, java.lang.Class<?>[]);
descriptor: (Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 14
1: aconst_null
astore 3
start local 3 2: aload 0
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 9
StackMap locals: java.lang.Class java.lang.String java.lang.Class[] java.lang.reflect.Method top int int java.lang.reflect.Method[]
StackMap stack:
3: aload 7
iload 5
aaload
astore 4
start local 4 4: aload 4
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
5: aload 3
ifnull 7
6: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "more than one method named "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.Class java.lang.String java.lang.Class[] java.lang.reflect.Method java.lang.reflect.Method int int java.lang.reflect.Method[]
StackMap stack:
aload 4
astore 3
end local 4 8: StackMap locals: java.lang.Class java.lang.String java.lang.Class[] java.lang.reflect.Method top int int java.lang.reflect.Method[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
iload 6
if_icmplt 3
10: aload 3
ifnonnull 12
11: new java.lang.NoSuchMethodException
dup
new java.lang.StringBuilder
dup
aload 0
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 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.NoSuchMethodException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.lang.Class java.lang.String java.lang.Class[] java.lang.reflect.Method
StackMap stack:
aload 3
13: areturn
end local 3 14: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
15: areturn
16: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 17: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 declaringClass Ljava/lang/Class<*>;
0 18 1 name Ljava/lang/String;
0 18 2 parameterTypes [Ljava/lang/Class;
2 14 3 found Ljava/lang/reflect/Method;
4 8 4 m Ljava/lang/reflect/Method;
17 18 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 13 16 Class java.lang.Exception
14 15 16 Class java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;[Ljava/lang/Class<*>;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
declaringClass
name
parameterTypes
public static org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec getMethodSpec(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: goto 6
2: StackMap locals: java.lang.Class
StackMap stack:
aload 1
ldc Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 2
areturn
5: StackMap locals: org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
end local 2 6: StackMap locals:
StackMap stack:
aload 1
ifnonnull 2
7: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Could not find class annotated with "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " in hierarchy of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 startClass Ljava/lang/Class<*>;
1 8 1 c Ljava/lang/Class<*>;
3 6 2 methodSpec Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
Signature: (Ljava/lang/Class<*>;)Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
MethodParameters:
Name Flags
startClass
public static java.lang.reflect.Method getMethodFromMethodSpec(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/reflect/Method;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getMethodSpec:(Ljava/lang/Class;)Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
astore 1
start local 1 1: aload 1
invokeinterface org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec.declaringClass:()Ljava/lang/Class;
astore 2
start local 2 2: aload 2
ldc Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
if_acmpne 4
3: aload 0
astore 2
4: StackMap locals: org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec java.lang.Class
StackMap stack:
aload 1
invokeinterface org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec.name:()Ljava/lang/String;
astore 3
start local 3 5: aload 1
invokeinterface org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec.parameters:()[Ljava/lang/Class;
astore 4
start local 4 6: aload 4
arraylength
iconst_1
if_icmpne 8
aload 4
iconst_0
aaload
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 8
7: aconst_null
astore 4
8: StackMap locals: java.lang.String java.lang.Class[]
StackMap stack:
aload 2
aload 3
aload 4
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 startClass Ljava/lang/Class<*>;
1 9 1 methodSpec Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
2 9 2 declaringClass Ljava/lang/Class<*>;
5 9 3 name Ljava/lang/String;
6 9 4 parameters [Ljava/lang/Class;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
startClass
public static org.graalvm.compiler.nodes.StructuredGraph getGraphFromMethodSpec(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getMethodSpec:(Ljava/lang/Class;)Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
astore 1
start local 1 1: aload 1
invokeinterface org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec.declaringClass:()Ljava/lang/Class;
astore 2
start local 2 2: aload 2
ldc Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
if_acmpne 4
3: aload 0
astore 2
4: StackMap locals: org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec java.lang.Class
StackMap stack:
aload 1
invokeinterface org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec.name:()Ljava/lang/String;
astore 3
start local 3 5: aload 1
invokeinterface org.graalvm.compiler.microbenchmarks.graal.util.MethodSpec.parameters:()[Ljava/lang/Class;
astore 4
start local 4 6: aload 4
arraylength
iconst_1
if_icmpne 8
aload 4
iconst_0
aaload
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 8
7: aconst_null
astore 4
8: StackMap locals: java.lang.String java.lang.Class[]
StackMap stack:
aload 2
aload 3
aload 4
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getGraph:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Lorg/graalvm/compiler/nodes/StructuredGraph;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 startClass Ljava/lang/Class<*>;
1 9 1 methodSpec Lorg/graalvm/compiler/microbenchmarks/graal/util/MethodSpec;
2 9 2 declaringClass Ljava/lang/Class<*>;
5 9 3 name Ljava/lang/String;
6 9 4 parameters [Ljava/lang/Class;
Signature: (Ljava/lang/Class<*>;)Lorg/graalvm/compiler/nodes/StructuredGraph;
MethodParameters:
Name Flags
startClass
public static org.graalvm.compiler.nodes.StructuredGraph getGraph(java.lang.Class<?>, java.lang.String, java.lang.Class<?>[]);
descriptor: (Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getGraph:(Ljava/lang/reflect/Method;)Lorg/graalvm/compiler/nodes/StructuredGraph;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 declaringClass Ljava/lang/Class<*>;
0 1 1 name Ljava/lang/String;
0 1 2 parameterTypes [Ljava/lang/Class;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;[Ljava/lang/Class<*>;)Lorg/graalvm/compiler/nodes/StructuredGraph;
MethodParameters:
Name Flags
declaringClass
name
parameterTypes
public static org.graalvm.compiler.nodes.StructuredGraph getGraph(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: new org.graalvm.compiler.microbenchmarks.graal.util.GraalState
dup
invokespecial org.graalvm.compiler.microbenchmarks.graal.util.GraalState.<init>:()V
astore 1
start local 1 1: aload 1
getfield org.graalvm.compiler.microbenchmarks.graal.util.GraalState.metaAccess:Ljdk/vm/ci/meta/MetaAccessProvider;
aload 0
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaMethod:(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 2
start local 2 2: aload 1
aload 2
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getGraph:(Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 method Ljava/lang/reflect/Method;
1 3 1 graal Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;
2 3 2 javaMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
MethodParameters:
Name Flags
method
public static org.graalvm.compiler.nodes.StructuredGraph getGraph(org.graalvm.compiler.microbenchmarks.graal.util.GraalState, jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokestatic org.graalvm.compiler.microbenchmarks.graal.util.GraalUtil.getGraph:(Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;Ljdk/vm/ci/meta/ResolvedJavaMethod;Z)Lorg/graalvm/compiler/nodes/StructuredGraph;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 graal Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;
0 1 1 javaMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
MethodParameters:
Name Flags
graal
javaMethod
public static org.graalvm.compiler.nodes.StructuredGraph getGraph(org.graalvm.compiler.microbenchmarks.graal.util.GraalState, jdk.vm.ci.meta.ResolvedJavaMethod, boolean);
descriptor: (Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;Ljdk/vm/ci/meta/ResolvedJavaMethod;Z)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new org.graalvm.compiler.nodes.StructuredGraph$Builder
dup
aload 0
getfield org.graalvm.compiler.microbenchmarks.graal.util.GraalState.options:Lorg/graalvm/compiler/options/OptionValues;
aload 0
getfield org.graalvm.compiler.microbenchmarks.graal.util.GraalState.debug:Lorg/graalvm/compiler/debug/DebugContext;
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokespecial org.graalvm.compiler.nodes.StructuredGraph$Builder.<init>:(Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/debug/DebugContext;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)V
1: iload 2
2: invokevirtual org.graalvm.compiler.nodes.StructuredGraph$Builder.useProfilingInfo:(Z)Lorg/graalvm/compiler/nodes/StructuredGraph$Builder;
3: aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph$Builder.method:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/nodes/StructuredGraph$Builder;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph$Builder.build:()Lorg/graalvm/compiler/nodes/StructuredGraph;
4: astore 3
start local 3 5: new org.graalvm.compiler.phases.PhaseSuite
dup
invokespecial org.graalvm.compiler.phases.PhaseSuite.<init>:()V
astore 4
start local 4 6: aload 4
new org.graalvm.compiler.java.GraphBuilderPhase
dup
new org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration$Plugins
dup
new org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins
dup
invokespecial org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.<init>:()V
invokespecial org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration$Plugins.<init>:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;)V
invokestatic org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration.getDefault:(Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderConfiguration$Plugins;)Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderConfiguration;
invokespecial org.graalvm.compiler.java.GraphBuilderPhase.<init>:(Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderConfiguration;)V
invokevirtual org.graalvm.compiler.phases.PhaseSuite.appendPhase:(Lorg/graalvm/compiler/phases/BasePhase;)V
7: aload 4
aload 3
new org.graalvm.compiler.phases.tiers.HighTierContext
dup
aload 0
getfield org.graalvm.compiler.microbenchmarks.graal.util.GraalState.providers:Lorg/graalvm/compiler/phases/util/Providers;
aload 4
getstatic org.graalvm.compiler.phases.OptimisticOptimizations.ALL:Lorg/graalvm/compiler/phases/OptimisticOptimizations;
invokespecial org.graalvm.compiler.phases.tiers.HighTierContext.<init>:(Lorg/graalvm/compiler/phases/util/Providers;Lorg/graalvm/compiler/phases/PhaseSuite;Lorg/graalvm/compiler/phases/OptimisticOptimizations;)V
invokevirtual org.graalvm.compiler.phases.PhaseSuite.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
8: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 graal Lorg/graalvm/compiler/microbenchmarks/graal/util/GraalState;
0 9 1 javaMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 9 2 useProfilingInfo Z
5 9 3 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
6 9 4 graphBuilderSuite Lorg/graalvm/compiler/phases/PhaseSuite<Lorg/graalvm/compiler/phases/tiers/HighTierContext;>;
MethodParameters:
Name Flags
graal
javaMethod
useProfilingInfo
public static org.graalvm.compiler.graph.Node[] getNodes(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)[Lorg/graalvm/compiler/graph/Node;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.snapshot:()Ljava/util/List;
astore 1
start local 1 1: aload 1
aload 1
invokeinterface java.util.List.size:()I
anewarray org.graalvm.compiler.graph.Node
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 2 1 nodeList Ljava/util/List<Lorg/graalvm/compiler/graph/Node;>;
MethodParameters:
Name Flags
graph
}
SourceFile: "GraalUtil.java"
InnerClasses:
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph
public Builder = org.graalvm.compiler.nodes.StructuredGraph$Builder of org.graalvm.compiler.nodes.StructuredGraph
public Plugins = org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration$Plugins of org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration