# HG changeset patch # User Josef Eisl # Date 1424800979 -3600 # Node ID 8ca837a82a9d0c526ed36970831159cccdb88875 # Parent 9d7677b9f9eb5221f3fd0efb4bc9c6af39b8d264 constopt.UseEntry: remove getPosition(). diff -r 9d7677b9f9eb -r 8ca837a82a9d graal/com.oracle.graal.lir/src/com/oracle/graal/lir/constopt/ConstantLoadOptimization.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/constopt/ConstantLoadOptimization.java Tue Feb 24 19:24:15 2015 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/constopt/ConstantLoadOptimization.java Tue Feb 24 19:02:59 2015 +0100 @@ -297,7 +297,7 @@ Debug.log("new move (%s) and inserted in block %s", move, block); // update usages for (UseEntry u : usages) { - u.getPosition().set(u.getInstruction(), variable); + u.setValue(variable); Debug.log("patched instruction %s", u.getInstruction()); } } diff -r 9d7677b9f9eb -r 8ca837a82a9d graal/com.oracle.graal.lir/src/com/oracle/graal/lir/constopt/UseEntry.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/constopt/UseEntry.java Tue Feb 24 19:24:15 2015 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/constopt/UseEntry.java Tue Feb 24 19:02:59 2015 +0100 @@ -49,8 +49,8 @@ return block; } - public ValuePosition getPosition() { - return position; + public void setValue(Value newValue) { + position.set(getInstruction(), newValue); } public Value getValue() { @@ -61,4 +61,5 @@ public String toString() { return "Use[" + getValue() + ":" + instruction + ":" + block + "]"; } + }