public class org.graalvm.compiler.replacements.SnippetCounterNode extends org.graalvm.compiler.nodes.FixedWithNextNode implements org.graalvm.compiler.nodes.spi.Lowerable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.SnippetCounterNode
super_class: org.graalvm.compiler.nodes.FixedWithNextNode
{
public static final org.graalvm.compiler.graph.NodeClass<org.graalvm.compiler.replacements.SnippetCounterNode> TYPE;
descriptor: Lorg/graalvm/compiler/graph/NodeClass;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lorg/graalvm/compiler/graph/NodeClass<Lorg/graalvm/compiler/replacements/SnippetCounterNode;>;
protected org.graalvm.compiler.nodes.ValueNode increment;
descriptor: Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$Input()
protected final org.graalvm.compiler.replacements.SnippetCounter counter;
descriptor: Lorg/graalvm/compiler/replacements/SnippetCounter;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public static final jdk.internal.vm.compiler.word.LocationIdentity SNIPPET_COUNTER_LOCATION;
descriptor: Ljdk/internal/vm/compiler/word/LocationIdentity;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final sun.misc.Unsafe UNSAFE;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/replacements/SnippetCounterNode;
invokestatic org.graalvm.compiler.graph.NodeClass.create:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/NodeClass;
putstatic org.graalvm.compiler.replacements.SnippetCounterNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
1: ldc "SnippetCounter"
invokestatic org.graalvm.compiler.nodes.NamedLocationIdentity.mutable:(Ljava/lang/String;)Lorg/graalvm/compiler/nodes/NamedLocationIdentity;
putstatic org.graalvm.compiler.replacements.SnippetCounterNode.SNIPPET_COUNTER_LOCATION:Ljdk/internal/vm/compiler/word/LocationIdentity;
2: invokestatic org.graalvm.compiler.replacements.SnippetCounterNode.initUnsafe:()Lsun/misc/Unsafe;
putstatic org.graalvm.compiler.replacements.SnippetCounterNode.UNSAFE:Lsun/misc/Unsafe;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.replacements.SnippetCounter, org.graalvm.compiler.nodes.ValueNode);
descriptor: (Lorg/graalvm/compiler/replacements/SnippetCounter;Lorg/graalvm/compiler/nodes/ValueNode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic org.graalvm.compiler.replacements.SnippetCounterNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
invokestatic org.graalvm.compiler.core.common.type.StampFactory.forVoid:()Lorg/graalvm/compiler/core/common/type/Stamp;
invokespecial org.graalvm.compiler.nodes.FixedWithNextNode.<init>:(Lorg/graalvm/compiler/graph/NodeClass;Lorg/graalvm/compiler/core/common/type/Stamp;)V
1: aload 0
aload 1
putfield org.graalvm.compiler.replacements.SnippetCounterNode.counter:Lorg/graalvm/compiler/replacements/SnippetCounter;
2: aload 0
aload 2
putfield org.graalvm.compiler.replacements.SnippetCounterNode.increment:Lorg/graalvm/compiler/nodes/ValueNode;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/replacements/SnippetCounterNode;
0 4 1 counter Lorg/graalvm/compiler/replacements/SnippetCounter;
0 4 2 increment Lorg/graalvm/compiler/nodes/ValueNode;
MethodParameters:
Name Flags
counter
increment
public org.graalvm.compiler.replacements.SnippetCounter getCounter();
descriptor: ()Lorg/graalvm/compiler/replacements/SnippetCounter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.replacements.SnippetCounterNode.counter:Lorg/graalvm/compiler/replacements/SnippetCounter;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/SnippetCounterNode;
public org.graalvm.compiler.nodes.ValueNode getIncrement();
descriptor: ()Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.replacements.SnippetCounterNode.increment:Lorg/graalvm/compiler/nodes/ValueNode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/SnippetCounterNode;
public static native void add(org.graalvm.compiler.replacements.SnippetCounter, int);
descriptor: (Lorg/graalvm/compiler/replacements/SnippetCounter;I)V
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$NodeIntrinsic()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.graph.Node$ConstantNodeParameter()
1:
MethodParameters:
Name Flags
counter
increment
public static void increment(org.graalvm.compiler.replacements.SnippetCounter);
descriptor: (Lorg/graalvm/compiler/replacements/SnippetCounter;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokestatic org.graalvm.compiler.replacements.SnippetCounterNode.add:(Lorg/graalvm/compiler/replacements/SnippetCounter;I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 counter Lorg/graalvm/compiler/replacements/SnippetCounter;
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.graph.Node$ConstantNodeParameter()
MethodParameters:
Name Flags
counter
public void lower(org.graalvm.compiler.nodes.spi.LoweringTool);
descriptor: (Lorg/graalvm/compiler/nodes/spi/LoweringTool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.replacements.SnippetCounterNode.graph:()Lorg/graalvm/compiler/nodes/StructuredGraph;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getGuardsStage:()Lorg/graalvm/compiler/nodes/StructuredGraph$GuardsStage;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph$GuardsStage.areFrameStatesAtDeopts:()Z
ifeq 3
1: aload 1
invokeinterface org.graalvm.compiler.nodes.spi.LoweringTool.getReplacements:()Lorg/graalvm/compiler/nodes/spi/Replacements;
ldc Lorg/graalvm/compiler/replacements/SnippetCounterNode$SnippetCounterSnippets$Templates;
invokeinterface org.graalvm.compiler.nodes.spi.Replacements.getSnippetTemplateCache:(Ljava/lang/Class;)Lorg/graalvm/compiler/api/replacements/SnippetTemplateCache;
checkcast org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets$Templates
astore 2
start local 2 2: aload 2
aload 0
aload 1
invokevirtual org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets$Templates.lower:(Lorg/graalvm/compiler/replacements/SnippetCounterNode;Lorg/graalvm/compiler/nodes/spi/LoweringTool;)V
end local 2 3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/replacements/SnippetCounterNode;
0 4 1 tool Lorg/graalvm/compiler/nodes/spi/LoweringTool;
2 3 2 templates Lorg/graalvm/compiler/replacements/SnippetCounterNode$SnippetCounterSnippets$Templates;
MethodParameters:
Name Flags
tool
public static jdk.internal.vm.compiler.word.LocationIdentity[] addSnippetCounters(jdk.internal.vm.compiler.word.LocationIdentity[]);
descriptor: ([Ljdk/internal/vm/compiler/word/LocationIdentity;)[Ljdk/internal/vm/compiler/word/LocationIdentity;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 5
StackMap locals: jdk.internal.vm.compiler.word.LocationIdentity[] top int int jdk.internal.vm.compiler.word.LocationIdentity[]
StackMap stack:
1: aload 4
iload 2
aaload
astore 1
start local 1 2: aload 1
getstatic org.graalvm.compiler.replacements.SnippetCounterNode.SNIPPET_COUNTER_LOCATION:Ljdk/internal/vm/compiler/word/LocationIdentity;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
areturn
end local 1 4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 1
6: aload 0
aload 0
arraylength
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast jdk.internal.vm.compiler.word.LocationIdentity[]
astore 1
start local 1 7: aload 1
aload 1
arraylength
iconst_1
isub
getstatic org.graalvm.compiler.replacements.SnippetCounterNode.SNIPPET_COUNTER_LOCATION:Ljdk/internal/vm/compiler/word/LocationIdentity;
aastore
8: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 privateLocations [Ljdk/internal/vm/compiler/word/LocationIdentity;
2 4 1 location Ljdk/internal/vm/compiler/word/LocationIdentity;
7 9 1 result [Ljdk/internal/vm/compiler/word/LocationIdentity;
MethodParameters:
Name Flags
privateLocations
private static sun.misc.Unsafe initUnsafe();
descriptor: ()Lsun/misc/Unsafe;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
3: ldc Lsun/misc/Unsafe;
ldc "theUnsafe"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 0
start local 0 4: aload 0
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
5: aload 0
ldc Lsun/misc/Unsafe;
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.misc.Unsafe
6: areturn
end local 0 7: StackMap locals:
StackMap stack: java.lang.Exception
astore 0
start local 0 8: new java.lang.RuntimeException
dup
ldc "exception while trying to get Unsafe"
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
4 7 0 theUnsafe Ljava/lang/reflect/Field;
8 9 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.SecurityException
3 6 7 Class java.lang.Exception
}
SourceFile: "SnippetCounterNode.java"
NestMembers:
org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets$Templates
InnerClasses:
public abstract ConstantNodeParameter = org.graalvm.compiler.graph.Node$ConstantNodeParameter of org.graalvm.compiler.graph.Node
public abstract Input = org.graalvm.compiler.graph.Node$Input of org.graalvm.compiler.graph.Node
public abstract NodeIntrinsic = org.graalvm.compiler.graph.Node$NodeIntrinsic of org.graalvm.compiler.graph.Node
public final GuardsStage = org.graalvm.compiler.nodes.StructuredGraph$GuardsStage of org.graalvm.compiler.nodes.StructuredGraph
SnippetCounterSnippets = org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets of org.graalvm.compiler.replacements.SnippetCounterNode
public Templates = org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets$Templates of org.graalvm.compiler.replacements.SnippetCounterNode$SnippetCounterSnippets
RuntimeVisibleAnnotations:
org.graalvm.compiler.nodeinfo.NodeInfo(cycles = org.graalvm.compiler.nodeinfo.NodeCycles.CYCLES_IGNORED:Lorg/graalvm/compiler/nodeinfo/NodeCycles;, size = org.graalvm.compiler.nodeinfo.NodeSize.SIZE_IGNORED:Lorg/graalvm/compiler/nodeinfo/NodeSize;)