public class org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets implements org.graalvm.compiler.replacements.Snippets
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets
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/hotspot/replacements/profiling/ProbabilisticProfileSnippets;
public static boolean shouldProfile(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_1
iload 0
ishl
iconst_1
isub
istore 2
start local 2 1: iload 1
iload 2
iand
ifne 2
iconst_1
ireturn
StackMap locals: int
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 probLog I
0 3 1 random I
1 3 2 probabilityMask I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
1:
MethodParameters:
Name Flags
probLog
random
public static int notificationMask(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iconst_1
iload 1
ishl
iconst_1
isub
istore 2
start local 2 1: iconst_1
iload 0
ishl
iconst_1
isub
istore 3
start local 3 2: iload 3
iload 2
iconst_m1
ixor
iand
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 freqLog I
0 3 1 probLog I
1 3 2 probabilityMask I
2 3 3 frequencyMask I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
MethodParameters:
Name Flags
freqLog
probLog
public static native void methodInvocationEvent(org.graalvm.compiler.core.common.spi.ForeignCallDescriptor, org.graalvm.compiler.hotspot.word.MethodCountersPointer);
descriptor: (Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;)V
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$NodeIntrinsic(value = Lorg/graalvm/compiler/nodes/extended/ForeignCallNode;)
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.graph.Node$ConstantNodeParameter()
1:
MethodParameters:
Name Flags
descriptor
counters
public static void profileMethodEntryWithProbability(org.graalvm.compiler.hotspot.word.MethodCountersPointer, int, int, int);
descriptor: (Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;III)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: dconst_1
iconst_1
iload 3
ishl
i2d
ddiv
iload 3
iload 1
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.shouldProfile:(II)Z
invokestatic org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:(DZ)Z
ifeq 9
1: aload 0
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.invocationCounterOffset:I
invokevirtual org.graalvm.compiler.hotspot.word.MethodCountersPointer.readInt:(I)I
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.invocationCounterIncrement:I
iload 3
ishl
iadd
istore 4
start local 4 2: aload 0
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.invocationCounterOffset:I
iload 4
invokevirtual org.graalvm.compiler.hotspot.word.MethodCountersPointer.writeInt:(II)V
3: iload 2
iflt 9
4: iload 2
iload 3
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.notificationMask:(II)I
istore 5
start local 5 5: ldc 0.010000000000000009
iload 4
iload 5
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.invocationCounterShift:I
ishl
iand
ifne 6
iconst_1
goto 7
StackMap locals: org.graalvm.compiler.hotspot.word.MethodCountersPointer int int int int int
StackMap stack: double
6: iconst_0
StackMap locals: org.graalvm.compiler.hotspot.word.MethodCountersPointer int int int int int
StackMap stack: double int
7: invokestatic org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:(DZ)Z
ifeq 9
8: getstatic org.graalvm.compiler.hotspot.HotSpotBackend.INVOCATION_EVENT:Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
aload 0
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.methodInvocationEvent:(Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;)V
end local 5 end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 counters Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;
0 10 1 random I
0 10 2 freqLog I
0 10 3 probLog I
2 9 4 counterValue I
5 9 5 mask I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
3:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
MethodParameters:
Name Flags
counters
random
freqLog
probLog
public static native void methodBackedgeEvent(org.graalvm.compiler.core.common.spi.ForeignCallDescriptor, org.graalvm.compiler.hotspot.word.MethodCountersPointer, int, int);
descriptor: (Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;II)V
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$NodeIntrinsic(value = Lorg/graalvm/compiler/nodes/extended/ForeignCallNode;)
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.graph.Node$ConstantNodeParameter()
1:
2:
3:
MethodParameters:
Name Flags
descriptor
counters
bci
targetBci
public static void profileBackedgeWithProbability(org.graalvm.compiler.hotspot.word.MethodCountersPointer, int, int, int, int, int);
descriptor: (Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;IIIII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: dconst_1
iconst_1
iload 3
ishl
i2d
ddiv
iload 3
iload 1
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.shouldProfile:(II)Z
invokestatic org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:(DZ)Z
ifeq 8
1: aload 0
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.backedgeCounterOffset:I
invokevirtual org.graalvm.compiler.hotspot.word.MethodCountersPointer.readInt:(I)I
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.invocationCounterIncrement:I
iload 3
ishl
iadd
istore 6
start local 6 2: aload 0
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.backedgeCounterOffset:I
iload 6
invokevirtual org.graalvm.compiler.hotspot.word.MethodCountersPointer.writeInt:(II)V
3: iload 2
iload 3
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.notificationMask:(II)I
istore 7
start local 7 4: ldc 0.010000000000000009
iload 6
iload 7
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.replacements.HotSpotReplacementsUtil.config:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.invocationCounterShift:I
ishl
iand
ifne 5
iconst_1
goto 6
StackMap locals: org.graalvm.compiler.hotspot.word.MethodCountersPointer int int int int int int int
StackMap stack: double
5: iconst_0
StackMap locals: org.graalvm.compiler.hotspot.word.MethodCountersPointer int int int int int int int
StackMap stack: double int
6: invokestatic org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:(DZ)Z
ifeq 8
7: getstatic org.graalvm.compiler.hotspot.HotSpotBackend.BACKEDGE_EVENT:Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
aload 0
iload 4
iload 5
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.methodBackedgeEvent:(Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;II)V
end local 7 end local 6 8: StackMap locals:
StackMap stack:
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 9 0 counters Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;
0 9 1 random I
0 9 2 freqLog I
0 9 3 probLog I
0 9 4 bci I
0 9 5 targetBci I
2 8 6 counterValue I
4 8 7 mask I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
3:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
4:
5:
MethodParameters:
Name Flags
counters
random
freqLog
probLog
bci
targetBci
public static void profileConditionalBackedgeWithProbability(org.graalvm.compiler.hotspot.word.MethodCountersPointer, int, int, int, boolean, int, int);
descriptor: (Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;IIIZII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: iload 4
ifeq 2
1: aload 0
iload 1
iload 2
iload 3
iload 5
iload 6
invokestatic org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets.profileBackedgeWithProbability:(Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;IIIII)V
2: StackMap locals:
StackMap stack:
return
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 3 0 counters Lorg/graalvm/compiler/hotspot/word/MethodCountersPointer;
0 3 1 random I
0 3 2 freqLog I
0 3 3 probLog I
0 3 4 branchCondition Z
0 3 5 bci I
0 3 6 targetBci I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Snippet()
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
3:
org.graalvm.compiler.api.replacements.Snippet$ConstantParameter()
4:
5:
6:
MethodParameters:
Name Flags
counters
random
freqLog
probLog
branchCondition
bci
targetBci
}
SourceFile: "ProbabilisticProfileSnippets.java"
NestMembers:
org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets$Templates
InnerClasses:
public abstract ConstantParameter = org.graalvm.compiler.api.replacements.Snippet$ConstantParameter of org.graalvm.compiler.api.replacements.Snippet
public abstract ConstantNodeParameter = org.graalvm.compiler.graph.Node$ConstantNodeParameter of org.graalvm.compiler.graph.Node
public abstract NodeIntrinsic = org.graalvm.compiler.graph.Node$NodeIntrinsic of org.graalvm.compiler.graph.Node
public Templates = org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets$Templates of org.graalvm.compiler.hotspot.replacements.profiling.ProbabilisticProfileSnippets