class org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer extends org.graalvm.compiler.phases.common.CanonicalizerPhase$CustomCanonicalizer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer
super_class: org.graalvm.compiler.phases.common.CanonicalizerPhase$CustomCanonicalizer
{
private int savedCycles;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final org.graalvm.compiler.nodes.spi.NodeCostProvider nodeCostProvider;
descriptor: Lorg/graalvm/compiler/nodes/spi/NodeCostProvider;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.graalvm.compiler.nodes.spi.NodeCostProvider);
descriptor: (Lorg/graalvm/compiler/nodes/spi/NodeCostProvider;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer this
start local 1 // org.graalvm.compiler.nodes.spi.NodeCostProvider nodeCostProvider
0: .line 308
aload 0 /* this */
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase$CustomCanonicalizer.<init>:()V
1: .line 309
aload 0 /* this */
aload 1 /* nodeCostProvider */
putfield org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer.nodeCostProvider:Lorg/graalvm/compiler/nodes/spi/NodeCostProvider;
2: .line 310
return
end local 1 // org.graalvm.compiler.nodes.spi.NodeCostProvider nodeCostProvider
end local 0 // org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/core/test/NodePropertiesTest$ImprovementSavingCanonicalizer;
0 3 1 nodeCostProvider Lorg/graalvm/compiler/nodes/spi/NodeCostProvider;
MethodParameters:
Name Flags
nodeCostProvider
public void simplify(org.graalvm.compiler.graph.Node, org.graalvm.compiler.graph.spi.SimplifierTool);
descriptor: (Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/spi/SimplifierTool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 // org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer this
start local 1 // org.graalvm.compiler.graph.Node node
start local 2 // org.graalvm.compiler.graph.spi.SimplifierTool tool
0: .line 314
aload 1 /* node */
instanceof org.graalvm.compiler.graph.spi.Canonicalizable$Binary
ifeq 5
1: .line 316
aload 1 /* node */
checkcast org.graalvm.compiler.graph.spi.Canonicalizable$Binary
astore 3 /* bc */
start local 3 // org.graalvm.compiler.graph.spi.Canonicalizable$Binary bc
2: .line 317
aload 3 /* bc */
aload 2 /* tool */
aload 3 /* bc */
invokeinterface org.graalvm.compiler.graph.spi.Canonicalizable$Binary.getX:()Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.ValueNode
aload 3 /* bc */
invokeinterface org.graalvm.compiler.graph.spi.Canonicalizable$Binary.getY:()Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.ValueNode
invokeinterface org.graalvm.compiler.graph.spi.Canonicalizable$Binary.canonical:(Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
astore 4 /* canonicalized */
start local 4 // org.graalvm.compiler.graph.Node canonicalized
3: .line 318
aload 4 /* canonicalized */
aload 1 /* node */
if_acmpeq 5
4: .line 319
aload 0 /* this */
dup
getfield org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer.savedCycles:I
aload 0 /* this */
getfield org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer.nodeCostProvider:Lorg/graalvm/compiler/nodes/spi/NodeCostProvider;
aload 1 /* node */
invokeinterface org.graalvm.compiler.nodes.spi.NodeCostProvider.getEstimatedCPUCycles:(Lorg/graalvm/compiler/graph/Node;)I
aload 0 /* this */
getfield org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer.nodeCostProvider:Lorg/graalvm/compiler/nodes/spi/NodeCostProvider;
aload 4 /* canonicalized */
invokeinterface org.graalvm.compiler.nodes.spi.NodeCostProvider.getEstimatedCPUCycles:(Lorg/graalvm/compiler/graph/Node;)I
isub
iadd
putfield org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer.savedCycles:I
end local 4 // org.graalvm.compiler.graph.Node canonicalized
end local 3 // org.graalvm.compiler.graph.spi.Canonicalizable$Binary bc
5: .line 322
StackMap locals:
StackMap stack:
return
end local 2 // org.graalvm.compiler.graph.spi.SimplifierTool tool
end local 1 // org.graalvm.compiler.graph.Node node
end local 0 // org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/core/test/NodePropertiesTest$ImprovementSavingCanonicalizer;
0 6 1 node Lorg/graalvm/compiler/graph/Node;
0 6 2 tool Lorg/graalvm/compiler/graph/spi/SimplifierTool;
2 5 3 bc Lorg/graalvm/compiler/graph/spi/Canonicalizable$Binary<Lorg/graalvm/compiler/nodes/ValueNode;>;
3 5 4 canonicalized Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
node
tool
}
SourceFile: "NodePropertiesTest.java"
NestHost: org.graalvm.compiler.core.test.NodePropertiesTest
InnerClasses:
ImprovementSavingCanonicalizer = org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer of org.graalvm.compiler.core.test.NodePropertiesTest
public abstract Binary = org.graalvm.compiler.graph.spi.Canonicalizable$Binary of org.graalvm.compiler.graph.spi.Canonicalizable
public abstract CustomCanonicalizer = org.graalvm.compiler.phases.common.CanonicalizerPhase$CustomCanonicalizer of org.graalvm.compiler.phases.common.CanonicalizerPhase