|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.ssa.SSAInstruction
com.ibm.wala.ssa.SSANewInstruction
public abstract class SSANewInstruction
An allocation instruction ("new") for SSA form. This includes allocations of both scalars and arrays.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.wala.ssa.SSAInstruction |
|---|
SSAInstruction.IVisitor, SSAInstruction.Visitor |
| Constructor Summary | |
|---|---|
protected |
SSANewInstruction(int result,
NewSiteReference site)
Create a new instruction to allocate a scalar. |
protected |
SSANewInstruction(int result,
NewSiteReference site,
int[] params)
Create a new instruction to allocate an array. |
| Method Summary | |
|---|---|
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. |
TypeReference |
getConcreteType()
|
int |
getDef()
|
int |
getDef(int i)
Return the ith def |
NewSiteReference |
getNewSite()
|
int |
getNumberOfDefs()
|
int |
getNumberOfUses()
|
int |
getUse(int j)
|
boolean |
hasDef()
Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g. |
int |
hashCode()
|
boolean |
isFallThrough()
|
boolean |
isPEI()
|
java.lang.String |
toString(SymbolTable symbolTable)
|
void |
visit(SSAInstruction.IVisitor v)
Apply an IVisitor to this instruction. |
| Methods inherited from class com.ibm.wala.ssa.SSAInstruction |
|---|
equals, getExceptionTypes, getValueString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SSANewInstruction(int result,
NewSiteReference site)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected SSANewInstruction(int result,
NewSiteReference site,
int[] params)
java.lang.IllegalArgumentException - if site is null
java.lang.IllegalArgumentException - if params is null| Method Detail |
|---|
public SSAInstruction copyForSSA(SSAInstructionFactory insts,
int[] defs,
int[] uses)
SSAInstruction
copyForSSA in class SSAInstructionpublic java.lang.String toString(SymbolTable symbolTable)
toString in class SSAInstructionpublic void visit(SSAInstruction.IVisitor v)
SSAInstruction
visit in class SSAInstructionjava.lang.IllegalArgumentException - if v is nullSSAInstruction.visit(IVisitor)public boolean hasDef()
SSAInstruction
hasDef in class SSAInstructionSSAInstruction.getDef()public int getDef()
getDef in class SSAInstructionpublic int getDef(int i)
SSAInstruction
getDef in class SSAInstructioni - number of the def, starting at 0.public int getNumberOfDefs()
getNumberOfDefs in class SSAInstructionpublic TypeReference getConcreteType()
public NewSiteReference getNewSite()
public int hashCode()
hashCode in class SSAInstructionpublic int getNumberOfUses()
getNumberOfUses in class SSAInstructionpublic int getUse(int j)
getUse in class SSAInstructionpublic boolean isPEI()
isPEI in class SSAInstructionpublic boolean isFallThrough()
isFallThrough in class SSAInstruction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||