public final class org.graalvm.compiler.replacements.aarch64.AArch64RoundNode 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.aarch64.AArch64RoundNode
super_class: org.graalvm.compiler.nodes.calc.UnaryNode
{
public static final org.graalvm.compiler.graph.NodeClass<org.graalvm.compiler.replacements.aarch64.AArch64RoundNode> 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/aarch64/AArch64RoundNode;>;
private final org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode mode;
descriptor: Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$org$graalvm$compiler$lir$aarch64$AArch64ArithmeticLIRGeneratorTool$RoundingMode;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
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/aarch64/AArch64RoundNode;
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.aarch64.AArch64RoundNode.$assertionsDisabled:Z
3: ldc Lorg/graalvm/compiler/replacements/aarch64/AArch64RoundNode;
invokestatic org.graalvm.compiler.graph.NodeClass.create:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/NodeClass;
putstatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.nodes.ValueNode, org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode);
descriptor: (Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
aload 1
getstatic org.graalvm.compiler.nodes.NodeView.DEFAULT:Lorg/graalvm/compiler/nodes/NodeView;
invokevirtual org.graalvm.compiler.nodes.ValueNode.stamp:(Lorg/graalvm/compiler/nodes/NodeView;)Lorg/graalvm/compiler/core/common/type/Stamp;
checkcast org.graalvm.compiler.core.common.type.FloatStamp
aload 2
invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.roundStamp:(Lorg/graalvm/compiler/core/common/type/FloatStamp;Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;)Lorg/graalvm/compiler/core/common/type/FloatStamp;
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: aload 0
aload 2
putfield org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.mode:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/replacements/aarch64/AArch64RoundNode;
0 3 1 value Lorg/graalvm/compiler/nodes/ValueNode;
0 3 2 mode Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
MethodParameters:
Name Flags
value
mode
private static double round(org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode, double);
descriptor: (Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;D)D
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.$SWITCH_TABLE$org$graalvm$compiler$lir$aarch64$AArch64ArithmeticLIRGeneratorTool$RoundingMode:()[I
aload 0
invokevirtual org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.ordinal:()I
iaload
tableswitch { // 1 - 4
1: 2
2: 1
3: 3
4: 4
default: 5
}
1: StackMap locals:
StackMap stack:
dload 1
invokestatic java.lang.Math.floor:(D)D
dreturn
2: StackMap locals:
StackMap stack:
dload 1
invokestatic java.lang.Math.rint:(D)D
dreturn
3: StackMap locals:
StackMap stack:
dload 1
invokestatic java.lang.Math.ceil:(D)D
dreturn
4: StackMap locals:
StackMap stack:
dload 1
d2l
l2d
dreturn
5: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "unimplemented RoundingMode "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.GraalError.unimplemented:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 mode Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
0 6 1 input D
MethodParameters:
Name Flags
mode
input
private static org.graalvm.compiler.core.common.type.FloatStamp roundStamp(org.graalvm.compiler.core.common.type.FloatStamp, org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode);
descriptor: (Lorg/graalvm/compiler/core/common/type/FloatStamp;Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;)Lorg/graalvm/compiler/core/common/type/FloatStamp;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.core.common.type.FloatStamp.lowerBound:()D
dstore 2
start local 2 1: dload 2
aload 1
dload 2
invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.round:(Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;D)D
invokestatic java.lang.Math.min:(DD)D
dstore 2
2: aload 0
invokevirtual org.graalvm.compiler.core.common.type.FloatStamp.upperBound:()D
dstore 4
start local 4 3: dload 4
aload 1
dload 4
invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.round:(Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;D)D
invokestatic java.lang.Math.max:(DD)D
dstore 4
4: new org.graalvm.compiler.core.common.type.FloatStamp
dup
aload 0
invokevirtual org.graalvm.compiler.core.common.type.FloatStamp.getBits:()I
dload 2
dload 4
aload 0
invokevirtual org.graalvm.compiler.core.common.type.FloatStamp.isNonNaN:()Z
invokespecial org.graalvm.compiler.core.common.type.FloatStamp.<init>:(IDDZ)V
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 stamp Lorg/graalvm/compiler/core/common/type/FloatStamp;
0 5 1 mode Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
1 5 2 min D
3 5 4 max D
MethodParameters:
Name Flags
stamp
mode
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=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.$assertionsDisabled:Z
ifne 1
aload 1
aload 0
invokevirtual org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
getstatic org.graalvm.compiler.nodes.NodeView.DEFAULT:Lorg/graalvm/compiler/nodes/NodeView;
invokevirtual org.graalvm.compiler.nodes.ValueNode.stamp:(Lorg/graalvm/compiler/nodes/NodeView;)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 1
checkcast org.graalvm.compiler.core.common.type.FloatStamp
aload 0
getfield org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.mode:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.roundStamp:(Lorg/graalvm/compiler/core/common/type/FloatStamp;Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;)Lorg/graalvm/compiler/core/common/type/FloatStamp;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/replacements/aarch64/AArch64RoundNode;
0 2 1 newStamp Lorg/graalvm/compiler/core/common/type/Stamp;
MethodParameters:
Name Flags
newStamp
private org.graalvm.compiler.nodes.ValueNode tryFold(org.graalvm.compiler.nodes.ValueNode);
descriptor: (Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifeq 6
1: aload 1
invokevirtual org.graalvm.compiler.nodes.ValueNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
astore 2
start local 2 2: aload 2
invokeinterface jdk.vm.ci.meta.JavaConstant.getJavaKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Double:Ljdk/vm/ci/meta/JavaKind;
if_acmpne 4
3: aload 0
getfield org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.mode:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
aload 2
invokeinterface jdk.vm.ci.meta.JavaConstant.asDouble:()D
invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.round:(Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;D)D
invokestatic org.graalvm.compiler.nodes.ConstantNode.forDouble:(D)Lorg/graalvm/compiler/nodes/ConstantNode;
areturn
4: StackMap locals: jdk.vm.ci.meta.JavaConstant
StackMap stack:
aload 2
invokeinterface jdk.vm.ci.meta.JavaConstant.getJavaKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Float:Ljdk/vm/ci/meta/JavaKind;
if_acmpne 6
5: aload 0
getfield org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.mode:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
aload 2
invokeinterface jdk.vm.ci.meta.JavaConstant.asFloat:()F
f2d
invokestatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.round:(Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;D)D
d2f
invokestatic org.graalvm.compiler.nodes.ConstantNode.forFloat:(F)Lorg/graalvm/compiler/nodes/ConstantNode;
areturn
end local 2 6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/replacements/aarch64/AArch64RoundNode;
0 7 1 input Lorg/graalvm/compiler/nodes/ValueNode;
2 6 2 c Ljdk/vm/ci/meta/JavaConstant;
MethodParameters:
Name Flags
input
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 0
aload 2
invokevirtual org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.tryFold:(Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
goto 3
StackMap locals: org.graalvm.compiler.nodes.ValueNode
StackMap stack:
2: aload 0
StackMap locals:
StackMap stack: org.graalvm.compiler.nodes.ValueNode
3: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/replacements/aarch64/AArch64RoundNode;
0 4 1 tool Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;
0 4 2 forValue Lorg/graalvm/compiler/nodes/ValueNode;
1 4 3 folded Lorg/graalvm/compiler/nodes/ValueNode;
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
checkcast org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool
aload 1
aload 0
invokevirtual org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
invokeinterface org.graalvm.compiler.nodes.spi.NodeLIRBuilderTool.operand:(Lorg/graalvm/compiler/graph/Node;)Ljdk/vm/ci/meta/Value;
aload 0
getfield org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.mode:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
invokeinterface org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool.emitRound:(Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;)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/aarch64/AArch64RoundNode;
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.aarch64.AArch64RoundNode.canonical:(Lorg/graalvm/compiler/graph/spi/CanonicalizerTool;Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/ValueNode;
areturn
LocalVariableTable:
Start End Slot Name Signature
static int[] $SWITCH_TABLE$org$graalvm$compiler$lir$aarch64$AArch64ArithmeticLIRGeneratorTool$RoundingMode();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.$SWITCH_TABLE$org$graalvm$compiler$lir$aarch64$AArch64ArithmeticLIRGeneratorTool$RoundingMode:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.values:()[Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.DOWN:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
invokevirtual org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.NEAREST:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
invokevirtual org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.TRUNCATE:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
invokevirtual org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.ordinal:()I
iconst_4
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.UP:Lorg/graalvm/compiler/lir/aarch64/AArch64ArithmeticLIRGeneratorTool$RoundingMode;
invokevirtual org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode.ordinal:()I
iconst_3
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
dup
putstatic org.graalvm.compiler.replacements.aarch64.AArch64RoundNode.$SWITCH_TABLE$org$graalvm$compiler$lir$aarch64$AArch64ArithmeticLIRGeneratorTool$RoundingMode:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
}
SourceFile: "AArch64RoundNode.java"
InnerClasses:
public final RoundingMode = org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool$RoundingMode of org.graalvm.compiler.lir.aarch64.AArch64ArithmeticLIRGeneratorTool
RuntimeVisibleAnnotations:
org.graalvm.compiler.nodeinfo.NodeInfo(cycles = org.graalvm.compiler.nodeinfo.NodeCycles.CYCLES_8:Lorg/graalvm/compiler/nodeinfo/NodeCycles;)