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
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=8, locals=11, 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 30
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: aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getAssumptions:()Ljdk/vm/ci/meta/Assumptions;
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.getConstantReflection:()Ljdk/vm/ci/meta/ConstantReflectionProvider;
invokeinterface jdk.vm.ci.meta.ConstantReflectionProvider.getMethodHandleAccess:()Ljdk/vm/ci/meta/MethodHandleAccessProvider;
aload 4
aload 2
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.bci:()I
aload 6
7: aload 3
8: invokestatic org.graalvm.compiler.replacements.nodes.MethodHandleNode.tryResolveTargetInvoke:(Ljdk/vm/ci/meta/Assumptions;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 7
start local 7 9: aload 7
ifnonnull 16
10: new org.graalvm.compiler.replacements.nodes.MethodHandleNode
dup
aload 4
aload 5
aload 2
aload 1
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.bci:()I
aload 6
aload 3
invokespecial org.graalvm.compiler.replacements.nodes.MethodHandleNode.<init>:(Ljdk/vm/ci/meta/MethodHandleAccessProvider$IntrinsicMethod;Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;Ljdk/vm/ci/meta/ResolvedJavaMethod;ILorg/graalvm/compiler/core/common/type/StampPair;[Lorg/graalvm/compiler/nodes/ValueNode;)V
astore 8
start local 8 11: 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 14
12: aload 1
aload 8
invokeinterface org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext.add:(Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
pop
13: goto 29
14: StackMap locals: org.graalvm.compiler.core.common.type.StampPair 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 8
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 8 15: goto 29
16: StackMap locals:
StackMap stack:
aload 7
invokevirtual org.graalvm.compiler.nodes.InvokeNode.callTarget:()Lorg/graalvm/compiler/nodes/CallTargetNode;
astore 8
start local 8 17: aload 8
invokevirtual org.graalvm.compiler.nodes.CallTargetNode.arguments:()Lorg/graalvm/compiler/graph/NodeInputList;
astore 9
start local 9 18: iconst_0
istore 10
start local 10 19: goto 22
20: StackMap locals: org.graalvm.compiler.nodes.CallTargetNode org.graalvm.compiler.graph.NodeInputList int
StackMap stack:
aload 9
iload 10
aload 1
aload 9
iload 10
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.recursiveAppend:(Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
invokevirtual org.graalvm.compiler.graph.NodeInputList.initialize:(ILorg/graalvm/compiler/graph/Node;)V
21: iinc 10 1
StackMap locals:
StackMap stack:
22: iload 10
aload 9
invokevirtual org.graalvm.compiler.graph.NodeInputList.size:()I
if_icmplt 20
end local 10 23: iconst_0
istore 10
start local 10 24: aload 0
getfield org.graalvm.compiler.replacements.MethodHandlePlugin.safeForDeoptimization:Z
ifeq 28
25: aload 3
arraylength
aload 9
invokevirtual org.graalvm.compiler.graph.NodeInputList.size:()I
if_icmpeq 26
iconst_1
goto 27
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.nodes.InvokeNode org.graalvm.compiler.nodes.CallTargetNode org.graalvm.compiler.graph.NodeInputList int
StackMap stack:
26: iconst_0
StackMap locals:
StackMap stack: int
27: istore 10
28: StackMap locals:
StackMap stack:
aload 1
aload 7
invokevirtual org.graalvm.compiler.nodes.InvokeNode.getInvokeKind:()Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;
aload 8
invokevirtual org.graalvm.compiler.nodes.CallTargetNode.targetMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
aload 9
aload 9
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 10
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)V
end local 10 end local 9 end local 8 29: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 7 end local 6 end local 5 30: StackMap locals:
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 31 0 this Lorg/graalvm/compiler/replacements/MethodHandlePlugin;
0 31 1 b Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext;
0 31 2 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 31 3 args [Lorg/graalvm/compiler/nodes/ValueNode;
1 31 4 intrinsicMethod Ljdk/vm/ci/meta/MethodHandleAccessProvider$IntrinsicMethod;
3 30 5 invokeKind Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;
6 30 6 invokeReturnStamp Lorg/graalvm/compiler/core/common/type/StampPair;
9 30 7 invoke Lorg/graalvm/compiler/nodes/InvokeNode;
11 15 8 methodHandleNode Lorg/graalvm/compiler/replacements/nodes/MethodHandleNode;
17 29 8 callTarget Lorg/graalvm/compiler/nodes/CallTargetNode;
18 29 9 argumentsList Lorg/graalvm/compiler/graph/NodeInputList<Lorg/graalvm/compiler/nodes/ValueNode;>;
19 23 10 i I
24 29 10 inlineEverything Z
MethodParameters:
Name Flags
b
method
args
}
SourceFile: "MethodHandlePlugin.java"
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