public abstract class SSAInvokeInstruction extends SSAAbstractInvokeInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor| Modifier and Type | Field and Description |
|---|---|
protected int[] |
params
The value numbers of the arguments passed to the call.
|
protected int |
result |
exception, siteNO_INDEX| Modifier | Constructor and Description |
|---|---|
protected |
SSAInvokeInstruction(int iindex,
int[] params,
int exception,
CallSiteReference site)
Constructor InvokeInstruction.
|
protected |
SSAInvokeInstruction(int iindex,
int result,
int[] params,
int exception,
CallSiteReference site) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertParamsKosher(int result,
int[] params,
CallSiteReference site) |
SSAInstruction |
copyForSSA(SSAInstructionFactory insts,
int[] defs,
int[] uses)
This method is meant to be used during SSA conversion for an IR that is not in SSA form.
|
int |
getNumberOfPositionalParameters()
How many parameters does this call specify?
|
int |
getNumberOfReturnValues()
How many distinct values does this call return?
|
int |
getNumberOfUses() |
int |
getReturnValue(int i)
What is the the value number of the ith value returned by this call
|
int |
getUse(int j) |
int |
hashCode() |
void |
visit(SSAInstruction.IVisitor v)
Apply an IVisitor to this instruction.
|
getCallSite, getDeclaredResultType, getDeclaredTarget, getDef, getDef, getException, getInvocationCode, getNumberOfDefs, getProgramCounter, getReceiver, hasDef, isDispatch, isFallThrough, isPEI, isSpecial, isStatic, toStringequals, getExceptionTypes, getValueString, iIndex, setInstructionIndex, toStringprotected final int result
protected final int[] params
protected SSAInvokeInstruction(int iindex,
int result,
int[] params,
int exception,
CallSiteReference site)
protected SSAInvokeInstruction(int iindex,
int[] params,
int exception,
CallSiteReference site)
public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses)
SSAInstructionIn particular, if the 'defs' parameter is null, then the new instruction has the same defs as the receiver. If 'defs' is not null, it must be an array with a size equal to the number of defs that the receiver instruction has. In this case, the new instruction has defs taken from the array. The uses of the new instruction work in the same way with the 'uses' parameter.
Note that this only applies to CAst-based IR translation, since Java bytecode-based IR generation uses a different SSA construction mechanism.
TODO: move this into the SSAInstructionFactory
copyForSSA in class SSAInstructionpublic static void assertParamsKosher(int result,
int[] params,
CallSiteReference site)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic void visit(SSAInstruction.IVisitor v)
SSAInstructionvisit in class SSAInstructionjava.lang.IllegalArgumentException - if v is nullSSAInstruction.visit(IVisitor)public int getNumberOfUses()
getNumberOfUses in class SSAInstructionSSAInstruction.getNumberOfUses()public int getNumberOfPositionalParameters()
SSAAbstractInvokeInstructiongetNumberOfPositionalParameters in class SSAAbstractInvokeInstructionpublic int getNumberOfReturnValues()
SSAAbstractInvokeInstructiongetNumberOfReturnValues in class SSAAbstractInvokeInstructionpublic int getReturnValue(int i)
SSAAbstractInvokeInstructiongetReturnValue in class SSAAbstractInvokeInstructionpublic int getUse(int j)
getUse in class SSAInstructionSSAInstruction.getUse(int)public int hashCode()
hashCode in class SSAInstruction