public class com.oracle.svm.truffle.api.TruffleBoundaryPhase extends org.graalvm.compiler.phases.Phase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.truffle.api.TruffleBoundaryPhase
super_class: org.graalvm.compiler.phases.Phase
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.phases.Phase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/truffle/api/TruffleBoundaryPhase;
protected void run(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getInvokes:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 12
StackMap locals: com.oracle.svm.truffle.api.TruffleBoundaryPhase org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.Invoke
astore 2
start local 2 2: aload 2
instanceof org.graalvm.compiler.nodes.InvokeWithExceptionNode
ifeq 12
3: aload 2
checkcast org.graalvm.compiler.nodes.InvokeWithExceptionNode
astore 4
start local 4 4: aload 4
invokevirtual org.graalvm.compiler.nodes.InvokeWithExceptionNode.exceptionEdge:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
checkcast org.graalvm.compiler.nodes.java.ExceptionObjectNode
astore 5
start local 5 5: aload 5
invokevirtual org.graalvm.compiler.nodes.java.ExceptionObjectNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
astore 6
start local 6 6: aload 6
instanceof org.graalvm.compiler.nodes.DeoptimizeNode
ifne 12
aload 4
invokevirtual org.graalvm.compiler.nodes.InvokeWithExceptionNode.callTarget:()Lorg/graalvm/compiler/nodes/CallTargetNode;
invokevirtual org.graalvm.compiler.nodes.CallTargetNode.targetMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
ifnull 12
7: aload 4
invokevirtual org.graalvm.compiler.nodes.InvokeWithExceptionNode.callTarget:()Lorg/graalvm/compiler/nodes/CallTargetNode;
invokevirtual org.graalvm.compiler.nodes.CallTargetNode.targetMethod:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 7
start local 7 8: aload 7
ldc Lcom/oracle/truffle/api/CompilerDirectives$TruffleBoundary;
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast com.oracle.truffle.api.CompilerDirectives$TruffleBoundary
astore 8
start local 8 9: aload 8
ifnull 12
10: aload 8
invokeinterface com.oracle.truffle.api.CompilerDirectives$TruffleBoundary.transferToInterpreterOnException:()Z
ifeq 12
11: aload 1
aload 6
aload 7
invokestatic com.oracle.svm.truffle.api.TruffleBoundaryPhase.addDeoptimizeNode:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/FixedNode;Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
end local 8 end local 7 end local 6 end local 5 end local 4 end local 2 12: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/svm/truffle/api/TruffleBoundaryPhase;
0 14 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 12 2 n Lorg/graalvm/compiler/nodes/Invoke;
4 12 4 invoke Lorg/graalvm/compiler/nodes/InvokeWithExceptionNode;
5 12 5 exceptionObject Lorg/graalvm/compiler/nodes/java/ExceptionObjectNode;
6 12 6 originalNext Lorg/graalvm/compiler/nodes/FixedNode;
8 12 7 targetMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
9 12 8 truffleBoundary Lcom/oracle/truffle/api/CompilerDirectives$TruffleBoundary;
MethodParameters:
Name Flags
graph
private static void addDeoptimizeNode(org.graalvm.compiler.nodes.StructuredGraph, org.graalvm.compiler.nodes.FixedNode, jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/FixedNode;Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getSpeculationLog:()Ljdk/vm/ci/meta/SpeculationLog;
astore 3
start local 3 1: aload 3
ifnull 8
2: aload 2
invokestatic org.graalvm.compiler.truffle.compiler.PartialEvaluator.createTruffleBoundaryExceptionSpeculation:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
astore 4
start local 4 3: aload 3
aload 4
invokeinterface jdk.vm.ci.meta.SpeculationLog.maySpeculate:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)Z
ifeq 8
4: aload 3
aload 4
invokeinterface jdk.vm.ci.meta.SpeculationLog.speculate:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)Ljdk/vm/ci/meta/SpeculationLog$Speculation;
astore 5
start local 5 5: aload 0
new org.graalvm.compiler.nodes.DeoptimizeNode
dup
getstatic jdk.vm.ci.meta.DeoptimizationAction.InvalidateRecompile:Ljdk/vm/ci/meta/DeoptimizationAction;
getstatic jdk.vm.ci.meta.DeoptimizationReason.TransferToInterpreter:Ljdk/vm/ci/meta/DeoptimizationReason;
aload 5
invokespecial org.graalvm.compiler.nodes.DeoptimizeNode.<init>:(Ljdk/vm/ci/meta/DeoptimizationAction;Ljdk/vm/ci/meta/DeoptimizationReason;Ljdk/vm/ci/meta/SpeculationLog$Speculation;)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.DeoptimizeNode
astore 6
start local 6 6: aload 1
aload 6
invokevirtual org.graalvm.compiler.nodes.FixedNode.replaceAtPredecessor:(Lorg/graalvm/compiler/graph/Node;)V
7: aload 1
invokestatic org.graalvm.compiler.nodes.util.GraphUtil.killCFG:(Lorg/graalvm/compiler/nodes/FixedNode;)V
end local 6 end local 5 end local 4 8: StackMap locals: jdk.vm.ci.meta.SpeculationLog
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
0 9 1 originalNext Lorg/graalvm/compiler/nodes/FixedNode;
0 9 2 targetMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
1 9 3 speculationLog Ljdk/vm/ci/meta/SpeculationLog;
3 8 4 speculationReason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
5 8 5 exceptionSpeculation Ljdk/vm/ci/meta/SpeculationLog$Speculation;
6 8 6 deoptimize Lorg/graalvm/compiler/nodes/DeoptimizeNode;
MethodParameters:
Name Flags
graph
originalNext
targetMethod
}
SourceFile: "TruffleBoundaryPhase.java"
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public Speculation = jdk.vm.ci.meta.SpeculationLog$Speculation of jdk.vm.ci.meta.SpeculationLog
public abstract SpeculationReason = jdk.vm.ci.meta.SpeculationLog$SpeculationReason of jdk.vm.ci.meta.SpeculationLog