public class org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy extends org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy
super_class: org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy
{
public void <init>(java.util.Map<org.graalvm.compiler.nodes.Invoke, java.lang.Double>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.phases.common.inlining.policy.GreedyInliningPolicy.<init>:(Ljava/util/Map;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/phases/aot/AOTInliningPolicy;
0 2 1 hints Ljava/util/Map<Lorg/graalvm/compiler/nodes/Invoke;Ljava/lang/Double;>;
Signature: (Ljava/util/Map<Lorg/graalvm/compiler/nodes/Invoke;Ljava/lang/Double;>;)V
MethodParameters:
Name Flags
hints
protected double maxInliningSize(int);
descriptor: (I)D
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy$Options.AOTInliningSizeMaximum:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2d
iload 1
i2d
getstatic org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy$Options.AOTInliningDepthToSizeRate:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
dmul
ddiv
getstatic org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy$Options.AOTInliningSizeMinimum:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2d
invokestatic java.lang.Math.max:(DD)D
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/phases/aot/AOTInliningPolicy;
0 1 1 inliningDepth I
MethodParameters:
Name Flags
inliningDepth
public boolean isWorthInlining(org.graalvm.compiler.nodes.spi.Replacements, org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation, int, boolean);
descriptor: (Lorg/graalvm/compiler/nodes/spi/Replacements;Lorg/graalvm/compiler/phases/common/inlining/walker/MethodInvocation;IZ)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=15, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation.callee:()Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;
astore 5
start local 5 1: iconst_0
istore 6
start local 6 2: goto 7
3: StackMap locals: org.graalvm.compiler.phases.common.inlining.info.InlineInfo int
StackMap stack:
aload 5
iload 6
invokeinterface org.graalvm.compiler.phases.common.inlining.info.InlineInfo.methodAt:(I)Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getDeclaringClass:()Ljdk/vm/ci/meta/ResolvedJavaType;
checkcast jdk.vm.ci.hotspot.HotSpotResolvedObjectType
astore 7
start local 7 4: aload 7
invokestatic org.graalvm.compiler.hotspot.FingerprintUtil.getFingerprint:(Ljdk/vm/ci/hotspot/HotSpotResolvedObjectType;)J
lconst_0
lcmp
ifne 6
5: iconst_0
ireturn
end local 7 6: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
7: iload 6
aload 5
invokeinterface org.graalvm.compiler.phases.common.inlining.info.InlineInfo.numberOfMethods:()I
if_icmplt 3
end local 6 8: aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation.probability:()D
dstore 6
start local 6 9: aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation.relevance:()D
dstore 8
start local 8 10: getstatic org.graalvm.compiler.core.common.GraalOptions.InlineEverything:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 13
11: aload 5
iload 3
iload 4
ldc "inline everything"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
12: iconst_1
ireturn
13: StackMap locals: org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy org.graalvm.compiler.nodes.spi.Replacements org.graalvm.compiler.phases.common.inlining.walker.MethodInvocation int int org.graalvm.compiler.phases.common.inlining.info.InlineInfo double double
StackMap stack:
aload 0
aload 1
aload 5
invokevirtual org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy.isIntrinsic:(Lorg/graalvm/compiler/nodes/spi/Replacements;Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;)Z
ifeq 16
14: aload 5
iload 3
iload 4
ldc "intrinsic"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
15: iconst_1
ireturn
16: StackMap locals:
StackMap stack:
aload 5
invokeinterface org.graalvm.compiler.phases.common.inlining.info.InlineInfo.shouldInline:()Z
ifeq 19
17: aload 5
iload 3
iload 4
ldc "forced inlining"
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
18: iconst_1
ireturn
19: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy.getInliningBonus:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;)D
dstore 10
start local 10 20: aload 5
invokeinterface org.graalvm.compiler.phases.common.inlining.info.InlineInfo.determineNodeCount:()I
istore 12
start local 12 21: iload 12
i2d
getstatic org.graalvm.compiler.core.common.GraalOptions.TrivialInliningSize:Lorg/graalvm/compiler/options/OptionValue;
invokevirtual org.graalvm.compiler.options.OptionValue.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2d
dload 10
dmul
dcmpg
ifge 24
22: aload 5
iload 3
iload 4
ldc "trivial (relevance=%f, probability=%f, bonus=%f, nodes=%d)"
iconst_4
anewarray java.lang.Object
dup
iconst_0
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
23: iconst_1
ireturn
24: StackMap locals: double int
StackMap stack:
aload 0
dload 8
aload 0
iload 3
invokevirtual org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy.maxInliningSize:(I)D
dload 10
dmul
d2i
invokevirtual org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy.computeMaximumSize:(DI)D
dstore 13
start local 13 25: iload 12
i2d
dload 13
dcmpg
ifgt 30
26: aload 5
iload 3
iload 4
ldc "relevance-based (relevance=%f, probability=%f, bonus=%f, nodes=%d <= %f)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
27: iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
dload 13
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
28: invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;IZLjava/lang/String;[Ljava/lang/Object;)V
29: iconst_1
ireturn
30: StackMap locals: double
StackMap stack:
aload 5
iload 3
ldc "relevance-based (relevance=%f, probability=%f, bonus=%f, nodes=%d > %f)"
iconst_5
anewarray java.lang.Object
dup
iconst_0
dload 8
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
dload 6
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
dload 10
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_3
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
dload 13
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic org.graalvm.compiler.phases.common.inlining.InliningUtil.logNotInlinedMethod:(Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;ILjava/lang/String;[Ljava/lang/Object;)V
31: iconst_0
ireturn
end local 13 end local 12 end local 10 end local 8 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 32 0 this Lorg/graalvm/compiler/hotspot/phases/aot/AOTInliningPolicy;
0 32 1 replacements Lorg/graalvm/compiler/nodes/spi/Replacements;
0 32 2 invocation Lorg/graalvm/compiler/phases/common/inlining/walker/MethodInvocation;
0 32 3 inliningDepth I
0 32 4 fullyProcessed Z
1 32 5 info Lorg/graalvm/compiler/phases/common/inlining/info/InlineInfo;
2 8 6 i I
4 6 7 t Ljdk/vm/ci/hotspot/HotSpotResolvedObjectType;
9 32 6 probability D
10 32 8 relevance D
20 32 10 inliningBonus D
21 32 12 nodes I
25 32 13 maximumNodes D
MethodParameters:
Name Flags
replacements
invocation
inliningDepth
fullyProcessed
}
SourceFile: "AOTInliningPolicy.java"
NestMembers:
org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy$Options
InnerClasses:
public Options = org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy$Options of org.graalvm.compiler.hotspot.phases.aot.AOTInliningPolicy