public final class org.graalvm.compiler.replacements.nodes.BitCountNode extends org.graalvm.compiler.nodes.calc.UnaryNode implements org.graalvm.compiler.nodes.spi.ArithmeticLIRLowerable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.replacements.nodes.BitCountNode
super_class: org.graalvm.compiler.nodes.calc.UnaryNode
{
public static final org.graalvm.compiler.graph.NodeClass<org.graalvm.compiler.replacements.nodes.BitCountNode> TYPE;
descriptor: Lorg/graalvm/compiler/graph/NodeClass;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lorg/graalvm/compiler/graph/NodeClass<Lorg/graalvm/compiler/replacements/nodes/BitCountNode;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/replacements/nodes/BitCountNode;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.replacements.nodes.BitCountNode.$assertionsDisabled:Z
3: ldc Lorg/graalvm/compiler/replacements/nodes/BitCountNode;
invokestatic org.graalvm.compiler.graph.NodeClass.create:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/NodeClass;
putstatic org.graalvm.compiler.replacements.nodes.BitCountNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.nodes.ValueNode);
descriptor: (Lorg/graalvm/compiler/nodes/ValueNode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic org.graalvm.compiler.replacements.nodes.BitCountNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
aload 1
invokevirtual org.graalvm.compiler.nodes.ValueNode.stamp:()Lorg/graalvm/compiler/core/common/type/Stamp;
aload 1
invokestatic org.graalvm.compiler.replacements.nodes.BitCountNode.computeStamp:(Lorg/graalvm/compiler/core/common/type/Stamp;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/core/common/type/Stamp;
aload 1
invokespecial org.graalvm.compiler.nodes.calc.UnaryNode.<init>:(Lorg/graalvm/compiler/graph/NodeClass;Lorg/graalvm/compiler/core/common/type/Stamp;Lorg/graalvm/compiler/nodes/ValueNode;)V
1: getstatic org.graalvm.compiler.replacements.nodes.BitCountNode.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual org.graalvm.compiler.nodes.ValueNode.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Int:Ljdk/vm/ci/meta/JavaKind;
if_acmpeq 2
aload 1
invokevirtual org.graalvm.compiler.nodes.ValueNode.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Long:Ljdk/vm/ci/meta/JavaKind;
if_acmpeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.graalvm.compiler.replacements.nodes.BitCountNode org.graalvm.compiler.nodes.ValueNode
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/replacements/nodes/BitCountNode;
0 3 1 value Lorg/graalvm/compiler/nodes/ValueNode;
MethodParameters:
Name Flags
value
public org.graalvm.compiler.core.common.type.Stamp foldStamp(org.graalvm.compiler.core.common.type.Stamp);
descriptor: (Lorg/graalvm/compiler/core/common/type/Stamp;)Lorg/graalvm/compiler/core/common/type/Stamp;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.replacements.nodes.BitCountNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 2
start local 2 1: aload 1
aload 2
invokestatic org.graalvm.compiler.replacements.nodes.BitCountNode.computeStamp:(Lorg/graalvm/compiler/core/common/type/Stamp;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/core/common/type/Stamp;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/nodes/BitCountNode;
0 2 1 newStamp Lorg/graalvm/compiler/core/common/type/Stamp;
1 2 2 theValue Lorg/graalvm/compiler/nodes/ValueNode;
MethodParameters:
Name Flags
newStamp
static org.graalvm.compiler.core.common.type.Stamp computeStamp(org.graalvm.compiler.core.common.type.Stamp, org.graalvm.compiler.nodes.ValueNode);
descriptor: (Lorg/graalvm/compiler/core/common/type/Stamp;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/core/common/type/Stamp;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.nodes.BitCountNode.$assertionsDisabled:Z
ifne 1
aload 0
aload 1
invokevirtual org.graalvm.compiler.nodes.ValueNode.stamp:()Lorg/graalvm/compiler/core/common/type/Stamp;
invokevirtual org.graalvm.compiler.core.common.type.Stamp.isCompatible:(Lorg/graalvm/compiler/core/common/type/Stamp;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
checkcast org.graalvm.compiler.core.common.type.IntegerStamp
astore 2
start local 2 2: getstatic org.graalvm.compiler.replacements.nodes.BitCountNode.$assertionsDisabled:Z
ifne 3
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.downMask:()J
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.getBits:()I
invokestatic jdk.vm.ci.code.CodeUtil.mask:(I)J
land
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.downMask:()J
lcmp
ifeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: org.graalvm.compiler.core.common.type.IntegerStamp
StackMap stack:
getstatic org.graalvm.compiler.replacements.nodes.BitCountNode.$assertionsDisabled:Z
ifne 4
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.upMask:()J
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.getBits:()I
invokestatic jdk.vm.ci.code.CodeUtil.mask:(I)J
land
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.upMask:()J
lcmp
ifeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
getstatic jdk.vm.ci.meta.JavaKind.Int:Ljdk/vm/ci/meta/JavaKind;
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.downMask:()J
invokestatic java.lang.Long.bitCount:(J)I
i2l
aload 2
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.upMask:()J
invokestatic java.lang.Long.bitCount:(J)I
i2l
invokestatic org.graalvm.compiler.core.common.type.StampFactory.forInteger:(Ljdk/vm/ci/meta/JavaKind;JJ)Lorg/graalvm/compiler/core/common/type/IntegerStamp;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 newStamp Lorg/graalvm/compiler/core/common/type/Stamp;
0 5 1 theValue Lorg/graalvm/compiler/nodes/ValueNode;
2 5 2 valueStamp Lorg/graalvm/compiler/core/common/type/IntegerStamp;
MethodParameters:
Name Flags
newStamp
theValue
public org.graalvm.compiler.nodes.ValueNode canonical(org.graalvm.compiler.graph.spi.CanonicalizerTool, org.graalvm.compiler.nodes.ValueNode);
descriptor: (Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifeq 5
1: aload 2
invokevirtual org.graalvm.compiler.nodes.ValueNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
astore 3
start local 3 2: aload 2
invokevirtual org.graalvm.compiler.nodes.ValueNode.getStackKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Int:Ljdk/vm/ci/meta/JavaKind;
if_acmpne 3
aload 3
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
invokestatic java.lang.Integer.bitCount:(I)I
goto 4
StackMap locals: jdk.vm.ci.meta.JavaConstant
StackMap stack:
3: aload 3
invokeinterface jdk.vm.ci.meta.JavaConstant.asLong:()J
invokestatic java.lang.Long.bitCount:(J)I
StackMap locals:
StackMap stack: int
4: invokestatic org.graalvm.compiler.nodes.ConstantNode.forInt:(I)Lorg/graalvm/compiler/nodes/ConstantNode;
areturn
end local 3 5: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/replacements/nodes/BitCountNode;
0 6 1 tool Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;
0 6 2 forValue Lorg/graalvm/compiler/nodes/ValueNode;
2 5 3 c Ljdk/vm/ci/meta/JavaConstant;
MethodParameters:
Name Flags
tool
forValue
public void generate(org.graalvm.compiler.nodes.spi.NodeLIRBuilderTool, org.graalvm.compiler.lir.gen.ArithmeticLIRGeneratorTool);
descriptor: (Lorg/graalvm/compiler/nodes/spi/NodeLIRBuilderTool;Lorg/graalvm/compiler/lir/gen/ArithmeticLIRGeneratorTool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
aload 2
aload 1
aload 0
invokevirtual org.graalvm.compiler.replacements.nodes.BitCountNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
invokeinterface org.graalvm.compiler.nodes.spi.NodeLIRBuilderTool.operand:(Lorg/graalvm/compiler/graph/Node;)Ljdk/vm/ci/meta/Value;
invokeinterface org.graalvm.compiler.lir.gen.ArithmeticLIRGeneratorTool.emitBitCount:(Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/meta/Value;
invokeinterface org.graalvm.compiler.nodes.spi.NodeLIRBuilderTool.setResult:(Lorg/graalvm/compiler/nodes/ValueNode;Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/meta/Value;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/nodes/BitCountNode;
0 2 1 builder Lorg/graalvm/compiler/nodes/spi/NodeLIRBuilderTool;
0 2 2 gen Lorg/graalvm/compiler/lir/gen/ArithmeticLIRGeneratorTool;
MethodParameters:
Name Flags
builder
gen
public org.graalvm.compiler.graph.Node canonical(org.graalvm.compiler.graph.spi.CanonicalizerTool, org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.graalvm.compiler.nodes.ValueNode
invokevirtual org.graalvm.compiler.replacements.nodes.BitCountNode.canonical:(Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "BitCountNode.java"
RuntimeVisibleAnnotations:
org.graalvm.compiler.nodeinfo.NodeInfo(cycles = org.graalvm.compiler.nodeinfo.NodeCycles.CYCLES_3:Lorg/graalvm/compiler/nodeinfo/NodeCycles;, size = org.graalvm.compiler.nodeinfo.NodeSize.SIZE_1:Lorg/graalvm/compiler/nodeinfo/NodeSize;)