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