Mercurial > hg > graal-compiler
changeset 16278:7a1dee389497
Rename LIRInstructionClass.Position to ValuePosition to avoid confusion with NodeClass.Position.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 25 Jun 2014 15:11:05 +0200 |
parents | 2bcba15fa725 |
children | 69b9980ff5c2 |
files | graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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<OperandFlag> getFlags(Position pos) { + public EnumSet<OperandFlag> getFlags(ValuePosition pos) { switch (pos.getMode()) { case USE: return useFlags[pos.getIndex()];