|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.InstructionFormat
org.jikesrvm.compilers.opt.ir.LocationCarrier
public final class LocationCarrier
InstructionFormats that have a Location (which is LocationOperand)
| Field Summary | |
|---|---|
private static int[] |
_index
|
| Constructor Summary | |
|---|---|
LocationCarrier()
|
|
| Method Summary | |
|---|---|
static boolean |
conforms(Instruction i)
Does the instruction belong to an instruction format that has an operand called Location? |
static boolean |
conforms(Operator o)
Does the operator belong to an instruction format that has an operand called Location? |
static LocationOperand |
getClearLocation(Instruction i)
Get the operand called Location from the argument instruction clearing its instruction pointer. |
static LocationOperand |
getLocation(Instruction i)
Get the operand called Location from the argument instruction. |
static boolean |
hasLocation(Instruction i)
Does the argument instruction have a non-null operand named Location? |
static int |
indexOfLocation(Instruction i)
Return the index of the operand called Location in the argument instruction. |
static void |
setLocation(Instruction i,
LocationOperand op)
Set the operand called Location in the argument instruction to the argument operand. |
| Methods inherited from class org.jikesrvm.compilers.opt.ir.InstructionFormat |
|---|
fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int[] _index
| Constructor Detail |
|---|
public LocationCarrier()
| Method Detail |
|---|
public static boolean conforms(Instruction i)
i - the instruction to test
true if the instruction's instruction
format has an operand called Location and
false if it does not.public static boolean conforms(Operator o)
o - the operator to test
true if the instruction's instruction
format has an operand called Location and
false if it does not.public static LocationOperand getLocation(Instruction i)
i - the instruction to fetch the operand from
public static LocationOperand getClearLocation(Instruction i)
i - the instruction to fetch the operand from
public static void setLocation(Instruction i,
LocationOperand op)
i - the instruction in which to store the operandop - the operand to storepublic static int indexOfLocation(Instruction i)
i - the instruction to access.
public static boolean hasLocation(Instruction i)
i - the instruction to access.
true if the instruction has an non-null
operand named Location or false
if it does not.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||