< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/ConstantNode.java

Print this page

        

*** 52,62 **** import jdk.vm.ci.meta.PrimitiveConstant; /** * The {@code ConstantNode} represents a {@link Constant constant}. */ ! @NodeInfo(nameTemplate = "C({p#rawvalue})", cycles = CYCLES_0, size = SIZE_1) public final class ConstantNode extends FloatingNode implements LIRLowerable { public static final NodeClass<ConstantNode> TYPE = NodeClass.create(ConstantNode.class); protected final Constant value; --- 52,62 ---- import jdk.vm.ci.meta.PrimitiveConstant; /** * The {@code ConstantNode} represents a {@link Constant constant}. */ ! @NodeInfo(nameTemplate = "C({p#rawvalue}) {p#stampKind}", cycles = CYCLES_0, size = SIZE_1) public final class ConstantNode extends FloatingNode implements LIRLowerable { public static final NodeClass<ConstantNode> TYPE = NodeClass.create(ConstantNode.class); protected final Constant value;
*** 516,532 **** @Override public Map<Object, Object> getDebugProperties(Map<Object, Object> map) { Map<Object, Object> properties = super.getDebugProperties(map); properties.put("rawvalue", value.toValueString()); return properties; } @Override public String toString(Verbosity verbosity) { if (verbosity == Verbosity.Name) { ! return super.toString(Verbosity.Name) + "(" + value.toValueString() + ")"; } else { return super.toString(verbosity); } } } --- 516,533 ---- @Override public Map<Object, Object> getDebugProperties(Map<Object, Object> map) { Map<Object, Object> properties = super.getDebugProperties(map); properties.put("rawvalue", value.toValueString()); + properties.put("stampKind", stamp.unrestricted().toString()); return properties; } @Override public String toString(Verbosity verbosity) { if (verbosity == Verbosity.Name) { ! return super.toString(Verbosity.Name) + "(" + value.toValueString() + ", " + stamp().unrestricted().toString() + ")"; } else { return super.toString(verbosity); } } }
< prev index next >