|
|||||||||||
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.Trap
public final class Trap
The Trap InstructionFormat class.
The header comment for Instruction
contains
an explanation of the role of InstructionFormats in the
opt compiler's IR.
Field Summary |
---|
Constructor Summary | |
---|---|
Trap()
|
Method Summary | |
---|---|
static boolean |
conforms(Instruction i)
InstructionFormat identification method for Trap. |
static boolean |
conforms(Operator o)
InstructionFormat identification method for Trap. |
static Instruction |
create(Operator o,
RegisterOperand GuardResult,
TrapCodeOperand TCode)
Create an instruction of the Trap instruction format. |
static RegisterOperand |
getClearGuardResult(Instruction i)
Get the operand called GuardResult from the argument instruction clearing its instruction pointer. |
static TrapCodeOperand |
getClearTCode(Instruction i)
Get the operand called TCode from the argument instruction clearing its instruction pointer. |
static RegisterOperand |
getGuardResult(Instruction i)
Get the operand called GuardResult from the argument instruction. |
static TrapCodeOperand |
getTCode(Instruction i)
Get the operand called TCode from the argument instruction. |
static boolean |
hasGuardResult(Instruction i)
Does the argument instruction have a non-null operand named GuardResult? |
static boolean |
hasTCode(Instruction i)
Does the argument instruction have a non-null operand named TCode? |
static int |
indexOfGuardResult(Instruction i)
Return the index of the operand called GuardResult in the argument instruction. |
static int |
indexOfTCode(Instruction i)
Return the index of the operand called TCode in the argument instruction. |
static Instruction |
mutate(Instruction i,
Operator o,
RegisterOperand GuardResult,
TrapCodeOperand TCode)
Mutate the argument instruction into an instruction of the Trap instruction format having the specified operator and operands. |
static void |
setGuardResult(Instruction i,
RegisterOperand GuardResult)
Set the operand called GuardResult in the argument instruction to the argument operand. |
static void |
setTCode(Instruction i,
TrapCodeOperand TCode)
Set the operand called TCode 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 |
Constructor Detail |
---|
public Trap()
Method Detail |
---|
public static boolean conforms(Instruction i)
i
- an instruction
true
if the InstructionFormat of the argument
instruction is Trap or false
if it is not.public static boolean conforms(Operator o)
o
- an instruction
true
if the InstructionFormat of the argument
operator is Trap or false
if it is 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 GuardResult)
i
- the instruction in which to store the operandGuardResult
- 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.public static TrapCodeOperand getTCode(Instruction i)
i
- the instruction to fetch the operand from
public static TrapCodeOperand getClearTCode(Instruction i)
i
- the instruction to fetch the operand from
public static void setTCode(Instruction i, TrapCodeOperand TCode)
i
- the instruction in which to store the operandTCode
- the operand to storepublic static int indexOfTCode(Instruction i)
i
- the instruction to access.
public static boolean hasTCode(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named TCode or false
if it does not.public static Instruction create(Operator o, RegisterOperand GuardResult, TrapCodeOperand TCode)
o
- the instruction's operatorGuardResult
- the instruction's GuardResult operandTCode
- the instruction's TCode operand
public static Instruction mutate(Instruction i, Operator o, RegisterOperand GuardResult, TrapCodeOperand TCode)
i
- the instruction to mutateo
- the instruction's operatorGuardResult
- the instruction's GuardResult operandTCode
- the instruction's TCode operand
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |