public class org.graalvm.compiler.replacements.MethodHandlePlugin implements org.graalvm.compiler.nodes.graphbuilderconf.NodePlugin
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.MethodHandlePlugin
super_class: java.lang.Object
{
private final jdk.vm.ci.meta.MethodHandleAccessProvider methodHandleAccess;
descriptor: Ljdk/vm/ci/meta/MethodHandleAccessProvider;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean safeForDeoptimization;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(jdk.vm.ci.meta.MethodHandleAccessProvider, boolean);
descriptor: (Ljdk/vm/ci/meta/MethodHandleAccessProvider;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.replacements.MethodHandlePlugin.methodHandleAccess:Ljdk/vm/ci/meta/MethodHandleAccessProvider;
2: aload 0
iload 2
putfield org.graalvm.compiler.replacements.MethodHandlePlugin.safeForDeoptimization:Z
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/MethodHandlePlugin;
0 4 1 methodHandleAccess Ljdk/vm/ci/meta/MethodHandleAccessProvider;
0 4 2 safeForDeoptimization Z
MethodParameters:
Name Flags
methodHandleAccess
safeForDeoptimization
private static int countRecursiveInlining(org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext, jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;Ljdk/vm/ci/meta/ResolvedJavaMethod;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getParent:()Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;
astore 3
start local 3 2: goto 6
3: StackMap locals: int org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext
StackMap stack:
aload 1
aload 3
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 5
4: iinc 2 1
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getParent:()Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;
astore 3
StackMap locals:
StackMap stack:
6: aload 3
ifnonnull 3
end local 3 7: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 b Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;
0 8 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
1 8 2 count I
2 7 3 c Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;
MethodParameters:
Name Flags
b
method
public boolean handleInvoke(org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext, jdk.vm.ci.meta.ResolvedJavaMethod, org.graalvm.compiler.nodes.ValueNode[]);
descriptor: (Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;Ljdk/vm/ci/meta/ResolvedJavaMethod;[Lorg/graalvm/compiler/nodes/ValueNode;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=17, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.graalvm.compiler.replacements.MethodHandlePlugin.methodHandleAccess:Ljdk/vm/ci/meta/MethodHandleAccessProvider;
aload 2
invokeinterface jdk.vm.ci.meta.MethodHandleAccessProvider.lookupMethodHandleIntrinsic:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/meta/MethodHandleAccessProvider$IntrinsicMethod;
astore 4
start local 4 1: aload 4
ifnull 42
2: aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getInvokeKind:()Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;
astore 5
start local 5 3: aload 5
getstatic org.graalvm.compiler.nodes.CallTargetNode$InvokeKind.Static:Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;
if_acmpeq 5
4: aload 3
iconst_0
aload 1
aload 3
iconst_0
aaload
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.nullCheckedValue:(Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
aastore
5: StackMap locals: jdk.vm.ci.meta.MethodHandleAccessProvider$IntrinsicMethod org.graalvm.compiler.nodes.CallTargetNode$InvokeKind
StackMap stack:
aload 1
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getAssumptions:()Ljdk/vm/ci/meta/Assumptions;
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getInvokeReturnStamp:(Ljdk/vm/ci/meta/Assumptions;)Lorg/graalvm/compiler/core/common/type/StampPair;
astore 6
start local 6 6: new org.graalvm.compiler.replacements.MethodHandlePlugin$1
dup
aload 0
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getGraph:()Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 1
invokespecial org.graalvm.compiler.replacements.MethodHandlePlugin$1.<init>:(Lorg/graalvm/compiler/replacements/MethodHandlePlugin;Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;)V
astore 7
start local 7 7: aload 7
aload 0
getfield org.graalvm.compiler.replacements.MethodHandlePlugin.methodHandleAccess:Ljdk/vm/ci/meta/MethodHandleAccessProvider;
aload 4
aload 2
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.bci:()I
aload 6
aload 3
invokestatic org.graalvm.compiler.replacements.nodes.MethodHandleNode.tryResolveTargetInvoke:(Lorg/graalvm/compiler/replacements/nodes/MethodHandleNode$GraphAdder;Ljdk/vm/ci/meta/MethodHandleAccessProvider;Ljdk/vm/ci/meta/MethodHandleAccessProvider$IntrinsicMethod;Ljdk/vm/ci/meta/ResolvedJavaMethod;ILorg/graalvm/compiler/core/common/type/StampPair;[Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/InvokeNode;
astore 8
start local 8 8: aload 8
ifnonnull 15
9: new org.graalvm.compiler.replacements.nodes.MethodHandleNode
dup
aload 4
aload 5
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
aload 2
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.bci:()I
aload 6
aload 3
invokestatic org.graalvm.compiler.replacements.nodes.MacroNode$MacroParams.of:(Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljdk/vm/ci/meta/ResolvedJavaMethod;ILorg/graalvm/compiler/core/common/type/StampPair;[Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/replacements/nodes/MacroNode$MacroParams;
invokespecial org.graalvm.compiler.replacements.nodes.MethodHandleNode.<init>:(Ljdk/vm/ci/meta/MethodHandleAccessProvider$IntrinsicMethod;Lorg/graalvm/compiler/replacements/nodes/MacroNode$MacroParams;)V
astore 9
start local 9 10: aload 6
invokevirtual org.graalvm.compiler.core.common.type.StampPair.getTrustedStamp:()Lorg/graalvm/compiler/core/common/type/Stamp;
invokevirtual org.graalvm.compiler.core.common.type.Stamp.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Void:Ljdk/vm/ci/meta/JavaKind;
if_acmpne 13
11: aload 1
aload 9
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.add:(Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
pop
12: goto 41
13: StackMap locals: org.graalvm.compiler.replacements.MethodHandlePlugin org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.ValueNode[] jdk.vm.ci.meta.MethodHandleAccessProvider$IntrinsicMethod org.graalvm.compiler.nodes.CallTargetNode$InvokeKind org.graalvm.compiler.core.common.type.StampPair org.graalvm.compiler.replacements.nodes.MethodHandleNode$GraphAdder org.graalvm.compiler.nodes.InvokeNode org.graalvm.compiler.replacements.nodes.MethodHandleNode
StackMap stack:
aload 1
aload 6
invokevirtual org.graalvm.compiler.core.common.type.StampPair.getTrustedStamp:()Lorg/graalvm/compiler/core/common/type/Stamp;
invokevirtual org.graalvm.compiler.core.common.type.Stamp.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
aload 9
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.addPush:(Ljdk/vm/ci/meta/JavaKind;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
pop
end local 9 14: goto 41
15: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.graalvm.compiler.nodes.InvokeNode.callTarget:()Lorg/graalvm/compiler/nodes/CallTargetNode;
astore 9
start local 9 16: aload 9
invokevirtual org.graalvm.compiler.nodes.CallTargetNode.arguments:()Lorg/graalvm/compiler/graph/NodeInputList;
astore 10
start local 10 17: iconst_0
istore 11
start local 11 18: goto 21
19: StackMap locals: org.graalvm.compiler.nodes.CallTargetNode org.graalvm.compiler.graph.NodeInputList int
StackMap stack:
aload 10
iload 11
aload 1
aload 10
iload 11
invokevirtual org.graalvm.compiler.graph.NodeInputList.get:(I)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.ValueNode
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.append:(Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
invokevirtual org.graalvm.compiler.graph.NodeInputList.initialize:(ILorg/graalvm/compiler/graph/Node;)V
20: iinc 11 1
StackMap locals:
StackMap stack:
21: iload 11
aload 10
invokevirtual org.graalvm.compiler.graph.NodeInputList.size:()I
if_icmplt 19
end local 11 22: iconst_0
istore 11
start local 11 23: aload 0
getfield org.graalvm.compiler.replacements.MethodHandlePlugin.safeForDeoptimization:Z
ifeq 27
24: aload 3
arraylength
aload 10
invokevirtual org.graalvm.compiler.graph.NodeInputList.size:()I
if_icmpeq 25
iconst_1
goto 26
StackMap locals: org.graalvm.compiler.replacements.MethodHandlePlugin org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.ValueNode[] jdk.vm.ci.meta.MethodHandleAccessProvider$IntrinsicMethod org.graalvm.compiler.nodes.CallTargetNode$InvokeKind org.graalvm.compiler.core.common.type.StampPair org.graalvm.compiler.replacements.nodes.MethodHandleNode$GraphAdder org.graalvm.compiler.nodes.InvokeNode org.graalvm.compiler.nodes.CallTargetNode org.graalvm.compiler.graph.NodeInputList int
StackMap stack:
25: iconst_0
StackMap locals:
StackMap stack: int
26: istore 11
27: StackMap locals:
StackMap stack:
aload 9
invokevirtual org.graalvm.compiler.nodes.CallTargetNode.targetMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 12
start local 12 28: iload 11
ifeq 30
aload 12
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.hasBytecodes:()Z
ifne 30
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getReplacements:()Lorg/graalvm/compiler/nodes/spi/Replacements;
aload 12
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.bci:()I
invokeinterface org.graalvm.compiler.nodes.spi.Replacements.hasSubstitution:(Ljdk/vm/ci/meta/ResolvedJavaMethod;I)Z
ifne 30
29: iconst_0
ireturn
30: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod
StackMap stack:
aload 1
aload 12
invokestatic org.graalvm.compiler.replacements.MethodHandlePlugin.countRecursiveInlining:(Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;Ljdk/vm/ci/meta/ResolvedJavaMethod;)I
istore 13
start local 13 31: getstatic org.graalvm.compiler.core.common.GraalOptions.MaximumRecursiveInlining:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 14
start local 14 32: iload 13
iload 14
if_icmple 34
33: iconst_0
ireturn
34: StackMap locals: int int
StackMap stack:
aload 1
aload 8
invokevirtual org.graalvm.compiler.nodes.InvokeNode.getInvokeKind:()Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;
aload 12
aload 10
aload 10
invokevirtual org.graalvm.compiler.graph.NodeInputList.size:()I
anewarray org.graalvm.compiler.nodes.ValueNode
invokevirtual org.graalvm.compiler.graph.NodeInputList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ValueNode[]
iload 11
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.handleReplacedInvoke:(Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;Ljdk/vm/ci/meta/ResolvedJavaMethod;[Lorg/graalvm/compiler/nodes/ValueNode;Z)Lorg/graalvm/compiler/nodes/Invoke;
pop
35: aload 6
invokevirtual org.graalvm.compiler.core.common.type.StampPair.getTrustedStamp:()Lorg/graalvm/compiler/core/common/type/Stamp;
invokevirtual org.graalvm.compiler.core.common.type.Stamp.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
astore 15
start local 15 36: aload 12
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getSignature:()Ljdk/vm/ci/meta/Signature;
invokeinterface jdk.vm.ci.meta.Signature.getReturnKind:()Ljdk/vm/ci/meta/JavaKind;
invokevirtual jdk.vm.ci.meta.JavaKind.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
astore 16
start local 16 37: aload 15
aload 16
if_acmpeq 41
38: aload 1
aload 16
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.pop:(Ljdk/vm/ci/meta/JavaKind;)Lorg/graalvm/compiler/nodes/ValueNode;
pop
39: aload 15
getstatic jdk.vm.ci.meta.JavaKind.Void:Ljdk/vm/ci/meta/JavaKind;
if_acmpeq 41
40: aload 1
ldc "Cannot do any type conversion when invoking method handle, so return value must remain popped"
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.bailout:(Ljava/lang/String;)Ljdk/vm/ci/code/BailoutException;
athrow
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 41: StackMap locals: org.graalvm.compiler.replacements.MethodHandlePlugin org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.ValueNode[] jdk.vm.ci.meta.MethodHandleAccessProvider$IntrinsicMethod org.graalvm.compiler.nodes.CallTargetNode$InvokeKind org.graalvm.compiler.core.common.type.StampPair org.graalvm.compiler.replacements.nodes.MethodHandleNode$GraphAdder org.graalvm.compiler.nodes.InvokeNode
StackMap stack:
iconst_1
ireturn
end local 8 end local 7 end local 6 end local 5 42: StackMap locals: org.graalvm.compiler.replacements.MethodHandlePlugin org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.ValueNode[] jdk.vm.ci.meta.MethodHandleAccessProvider$IntrinsicMethod
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 43 0 this Lorg/graalvm/compiler/replacements/MethodHandlePlugin;
0 43 1 b Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;
0 43 2 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 43 3 args [Lorg/graalvm/compiler/nodes/ValueNode;
1 43 4 intrinsicMethod Ljdk/vm/ci/meta/MethodHandleAccessProvider$IntrinsicMethod;
3 42 5 invokeKind Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;
6 42 6 invokeReturnStamp Lorg/graalvm/compiler/core/common/type/StampPair;
7 42 7 adder Lorg/graalvm/compiler/replacements/nodes/MethodHandleNode$GraphAdder;
8 42 8 invoke Lorg/graalvm/compiler/nodes/InvokeNode;
10 14 9 methodHandleNode Lorg/graalvm/compiler/replacements/nodes/MethodHandleNode;
16 41 9 callTarget Lorg/graalvm/compiler/nodes/CallTargetNode;
17 41 10 argumentsList Lorg/graalvm/compiler/graph/NodeInputList<Lorg/graalvm/compiler/nodes/ValueNode;>;
18 22 11 i I
23 41 11 inlineEverything Z
28 41 12 targetMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
31 41 13 recursionDepth I
32 41 14 maxRecursionDepth I
36 41 15 invokeReturnKind Ljdk/vm/ci/meta/JavaKind;
37 41 16 targetMethodReturnKind Ljdk/vm/ci/meta/JavaKind;
MethodParameters:
Name Flags
b
method
args
}
SourceFile: "MethodHandlePlugin.java"
NestMembers:
org.graalvm.compiler.replacements.MethodHandlePlugin$1
InnerClasses:
public final IntrinsicMethod = jdk.vm.ci.meta.MethodHandleAccessProvider$IntrinsicMethod of jdk.vm.ci.meta.MethodHandleAccessProvider
public final InvokeKind = org.graalvm.compiler.nodes.CallTargetNode$InvokeKind of org.graalvm.compiler.nodes.CallTargetNode
org.graalvm.compiler.replacements.MethodHandlePlugin$1
public MacroParams = org.graalvm.compiler.replacements.nodes.MacroNode$MacroParams of org.graalvm.compiler.replacements.nodes.MacroNode
public abstract GraphAdder = org.graalvm.compiler.replacements.nodes.MethodHandleNode$GraphAdder of org.graalvm.compiler.replacements.nodes.MethodHandleNode