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