Mercurial > hg > truffle
changeset 5073:2db1ad9dd385
rename PiNode.value to PiNode.object and UnsafeCastNode.x to UnsafeCastNode.object
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Wed, 14 Mar 2012 16:57:18 +0100 |
parents | f6503609a12d |
children | ad00d1d02ed2 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/PiNode.java graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/UnsafeCastNode.java |
diffstat | 2 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/PiNode.java Wed Mar 14 14:09:39 2012 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/PiNode.java Wed Mar 14 16:57:18 2012 +0100 @@ -29,25 +29,25 @@ public class PiNode extends FloatingNode implements LIRLowerable { - @Input private ValueNode value; + @Input private ValueNode object; @Input private BeginNode anchor; - public ValueNode value() { - return value; + public ValueNode object() { + return object; } public BeginNode anchor() { return anchor; } - public PiNode(ValueNode value, BeginNode anchor, Stamp stamp) { + public PiNode(ValueNode object, BeginNode anchor, Stamp stamp) { super(stamp); - this.value = value; + this.object = object; this.anchor = anchor; } @Override public void generate(LIRGeneratorTool generator) { - generator.setResult(this, generator.operand(value)); + generator.setResult(this, generator.operand(object)); } }
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/UnsafeCastNode.java Wed Mar 14 14:09:39 2012 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/UnsafeCastNode.java Wed Mar 14 16:57:18 2012 +0100 @@ -34,30 +34,30 @@ */ public final class UnsafeCastNode extends FloatingNode implements Canonicalizable, Lowerable { - @Input private ValueNode x; + @Input private ValueNode object; @Data private RiResolvedType toType; - public ValueNode x() { - return x; + public ValueNode object() { + return object; } - public UnsafeCastNode(ValueNode x, RiResolvedType toType) { + public UnsafeCastNode(ValueNode object, RiResolvedType toType) { super(StampFactory.declared(toType)); - this.x = x; + this.object = object; this.toType = toType; } @Override public ValueNode canonical(CanonicalizerTool tool) { - if (x != null && x.declaredType() != null && x.declaredType().isSubtypeOf(toType)) { - return x; + if (object != null && object.declaredType() != null && object.declaredType().isSubtypeOf(toType)) { + return object; } return this; } @Override public void lower(CiLoweringTool tool) { - ((StructuredGraph) graph()).replaceFloating(this, x); + ((StructuredGraph) graph()).replaceFloating(this, object); } @SuppressWarnings("unused")