# HG changeset patch # User Josef Eisl # Date 1403701865 -7200 # Node ID 7a1dee389497371af25801a942a29713ed9cc89c # Parent 2bcba15fa725cb3144697146860a209192d61ca1 Rename LIRInstructionClass.Position to ValuePosition to avoid confusion with NodeClass.Position. diff -r 2bcba15fa725 -r 7a1dee389497 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java Wed Jun 25 15:04:00 2014 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java Wed Jun 25 15:11:05 2014 +0200 @@ -244,15 +244,15 @@ /** * Describes an operand slot for a {@link LIRInstructionClass}. * - * @see LIRInstructionClass#get(LIRInstruction, Position) + * @see LIRInstructionClass#get(LIRInstruction, ValuePosition) */ - public static final class Position { + public static final class ValuePosition { private final OperandMode mode; private final int index; private final int subIndex; - public Position(OperandMode mode, int index, int subIndex) { + public ValuePosition(OperandMode mode, int index, int subIndex) { this.mode = mode; this.index = index; this.subIndex = subIndex; @@ -308,7 +308,7 @@ if (getClass() != obj.getClass()) { return false; } - Position other = (Position) obj; + ValuePosition other = (ValuePosition) obj; if (index != other.index) { return false; } @@ -322,7 +322,7 @@ } } - protected Value get(LIRInstruction obj, Position pos) { + protected Value get(LIRInstruction obj, ValuePosition pos) { long[] offsets; int directCount; switch (pos.getMode()) { @@ -351,7 +351,7 @@ return getValueArray(obj, offsets[pos.getIndex()])[pos.getSubIndex()]; } - protected void set(LIRInstruction obj, Position pos, Value value) { + protected void set(LIRInstruction obj, ValuePosition pos, Value value) { long[] offsets; int directCount; switch (pos.getMode()) { @@ -380,7 +380,7 @@ getValueArray(obj, offsets[pos.getIndex()])[pos.getSubIndex()] = value; } - public EnumSet getFlags(Position pos) { + public EnumSet getFlags(ValuePosition pos) { switch (pos.getMode()) { case USE: return useFlags[pos.getIndex()];