|
|||||||||||
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.OsrPoint
public final class OsrPoint
The OsrPoint 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 | |
---|---|
OsrPoint()
|
Method Summary | |
---|---|
static boolean |
conforms(Instruction i)
InstructionFormat identification method for OsrPoint. |
static boolean |
conforms(Operator o)
InstructionFormat identification method for OsrPoint. |
static Instruction |
create(Operator o,
InlinedOsrTypeInfoOperand InlinedTypeInfo,
int numVarOps)
Create an instruction of the OsrPoint instruction format. |
static Operand |
getClearElement(Instruction i,
int k)
Get the k'th operand called Element from the argument instruction clearing its instruction pointer. |
static InlinedOsrTypeInfoOperand |
getClearInlinedTypeInfo(Instruction i)
Get the operand called InlinedTypeInfo from the argument instruction clearing its instruction pointer. |
static Operand |
getElement(Instruction i,
int k)
Get the k'th operand called Element from the argument instruction. |
static InlinedOsrTypeInfoOperand |
getInlinedTypeInfo(Instruction i)
Get the operand called InlinedTypeInfo from the argument instruction. |
static int |
getNumberOfElements(Instruction i)
How many variable-length operands called Elements does the argument instruction have? |
static boolean |
hasElement(Instruction i,
int k)
Does the argument instruction have a non-null k'th operand named Element? |
static boolean |
hasElements(Instruction i)
Does the argument instruction have any operands named Element? |
static boolean |
hasInlinedTypeInfo(Instruction i)
Does the argument instruction have a non-null operand named InlinedTypeInfo? |
static int |
indexOfElement(Instruction i,
int k)
Return the index of the k'th operand called Element in the argument instruction. |
static int |
indexOfElements(Instruction i)
Return the index of the first operand called Element in the argument instruction. |
static int |
indexOfInlinedTypeInfo(Instruction i)
Return the index of the operand called InlinedTypeInfo in the argument instruction. |
static Instruction |
mutate(Instruction i,
Operator o,
InlinedOsrTypeInfoOperand InlinedTypeInfo,
int numVarOps)
Mutate the argument instruction into an instruction of the OsrPoint instruction format having the specified operator and operands. |
static void |
resizeNumberOfElements(Instruction i,
int numVarOps)
Change the number of Elements that may be stored in the argument instruction to numVarOps. |
static void |
setElement(Instruction i,
int k,
Operand o)
Set the k'th operand called Element in the argument instruction to the argument operand. |
static void |
setInlinedTypeInfo(Instruction i,
InlinedOsrTypeInfoOperand InlinedTypeInfo)
Set the operand called InlinedTypeInfo 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 OsrPoint()
Method Detail |
---|
public static boolean conforms(Instruction i)
i
- an instruction
true
if the InstructionFormat of the argument
instruction is OsrPoint or false
if it is not.public static boolean conforms(Operator o)
o
- an instruction
true
if the InstructionFormat of the argument
operator is OsrPoint or false
if it is not.public static InlinedOsrTypeInfoOperand getInlinedTypeInfo(Instruction i)
i
- the instruction to fetch the operand from
public static InlinedOsrTypeInfoOperand getClearInlinedTypeInfo(Instruction i)
i
- the instruction to fetch the operand from
public static void setInlinedTypeInfo(Instruction i, InlinedOsrTypeInfoOperand InlinedTypeInfo)
i
- the instruction in which to store the operandInlinedTypeInfo
- the operand to storepublic static int indexOfInlinedTypeInfo(Instruction i)
i
- the instruction to access.
public static boolean hasInlinedTypeInfo(Instruction i)
i
- the instruction to access.
true
if the instruction has an non-null
operand named InlinedTypeInfo or false
if it does not.public static Operand getElement(Instruction i, int k)
i
- the instruction to fetch the operand fromk
- the index of the operand
public static Operand getClearElement(Instruction i, int k)
i
- the instruction to fetch the operand fromk
- the index of the operand
public static void setElement(Instruction i, int k, Operand o)
i
- the instruction in which to store the operandk
- the index of the operando
- the operand to storepublic static int indexOfElement(Instruction i, int k)
i
- the instruction to access.k
- the index of the operand.
public static boolean hasElement(Instruction i, int k)
i
- the instruction to access.k
- the index of the operand.
true
if the instruction has an non-null
k'th operand named Element or false
if it does not.public static int indexOfElements(Instruction i)
i
- the instruction to access.
public static boolean hasElements(Instruction i)
i
- the instruction to access.
true
if the instruction has operands
named Element or false
if it does not.public static int getNumberOfElements(Instruction i)
i
- the instruction to access
public static void resizeNumberOfElements(Instruction i, int numVarOps)
i
- the instruction to accessnumVarOps
- the new number of variable operands called Elements
that may be stored in the instructionpublic static Instruction create(Operator o, InlinedOsrTypeInfoOperand InlinedTypeInfo, int numVarOps)
o
- the instruction's operatorInlinedTypeInfo
- the instruction's InlinedTypeInfo operandnumVarOps
- the number of variable length operands that
will be stored in the insruction.
public static Instruction mutate(Instruction i, Operator o, InlinedOsrTypeInfoOperand InlinedTypeInfo, int numVarOps)
i
- the instruction to mutateo
- the instruction's operatorInlinedTypeInfo
- the instruction's InlinedTypeInfo operandnumVarOps
- the number of variable length operands that
will be stored in the insruction.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |