comparison graal/com.oracle.graal.virtual/src/com/oracle/graal/virtual/nodes/MaterializedObjectState.java @ 18845:f57d86eb036f

removed Node factory methods
author Doug Simon <doug.simon@oracle.com>
date Mon, 12 Jan 2015 20:39:04 +0100
parents 45b45f902bed
children 7e2c87dae93e
comparison
equal deleted inserted replaced
18843:f2261069ba99 18845:f57d86eb036f
37 37
38 public ValueNode materializedValue() { 38 public ValueNode materializedValue() {
39 return materializedValue; 39 return materializedValue;
40 } 40 }
41 41
42 public static MaterializedObjectState create(VirtualObjectNode object, ValueNode materializedValue) { 42 public MaterializedObjectState(VirtualObjectNode object, ValueNode materializedValue) {
43 return new MaterializedObjectState(object, materializedValue);
44 }
45
46 protected MaterializedObjectState(VirtualObjectNode object, ValueNode materializedValue) {
47 super(object); 43 super(object);
48 this.materializedValue = materializedValue; 44 this.materializedValue = materializedValue;
49 } 45 }
50 46
51 @Override 47 @Override
52 public MaterializedObjectState duplicateWithVirtualState() { 48 public MaterializedObjectState duplicateWithVirtualState() {
53 return graph().addWithoutUnique(MaterializedObjectState.create(object(), materializedValue)); 49 return graph().addWithoutUnique(new MaterializedObjectState(object(), materializedValue));
54 } 50 }
55 51
56 @Override 52 @Override
57 public void applyToNonVirtual(NodeClosure<? super ValueNode> closure) { 53 public void applyToNonVirtual(NodeClosure<? super ValueNode> closure) {
58 closure.apply(this, materializedValue); 54 closure.apply(this, materializedValue);