|
|||||||||||
| 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.GuardCarrier
public final class GuardCarrier
InstructionFormats that have a Guard (which is Operand)
| Field Summary | |
|---|---|
private static int[] |
_index
|
| Constructor Summary | |
|---|---|
GuardCarrier()
|
|
| Method Summary | |
|---|---|
static boolean |
conforms(Instruction i)
Does the instruction belong to an instruction format that has an operand called Guard? |
static boolean |
conforms(Operator o)
Does the operator belong to an instruction format that has an operand called Guard? |
static Operand |
getClearGuard(Instruction i)
Get the operand called Guard from the argument instruction clearing its instruction pointer. |
static Operand |
getGuard(Instruction i)
Get the operand called Guard from the argument instruction. |
static boolean |
hasGuard(Instruction i)
Does the argument instruction have a non-null operand named Guard? |
static int |
indexOfGuard(Instruction i)
Return the index of the operand called Guard in the argument instruction. |
static void |
setGuard(Instruction i,
Operand op)
Set the operand called Guard 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 GuardCarrier()
| Method Detail |
|---|
public static boolean conforms(Instruction i)
i - the instruction to test
true if the instruction's instruction
format has an operand called Guard 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 Guard and
false if it does not.public static Operand getGuard(Instruction i)
i - the instruction to fetch the operand from
public static Operand getClearGuard(Instruction i)
i - the instruction to fetch the operand from
public static void setGuard(Instruction i,
Operand op)
i - the instruction in which to store the operandop - the operand to storepublic static int indexOfGuard(Instruction i)
i - the instruction to access.
public static boolean hasGuard(Instruction i)
i - the instruction to access.
true if the instruction has an non-null
operand named Guard or false
if it does not.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||