public class StackSlotIVisitor
extends java.lang.Object
implements com.ibm.wala.ssa.SSAInstruction.IVisitor
Modifier and Type | Field and Description |
---|---|
private com.ibm.wala.ssa.IR |
ir |
SlotParamTable |
slotParamTable |
Constructor and Description |
---|
StackSlotIVisitor(com.ibm.wala.ssa.IR ir,
SlotParamTable slotParamTable) |
Modifier and Type | Method and Description |
---|---|
void |
populateVars(com.ibm.wala.ssa.SSAInstruction ins,
int var)
This method is used only to get the stack slot of "use" vars, which are either already defined in a previous "def" and so it will be in the stackSlotMap.
|
void |
visitArrayLength(com.ibm.wala.ssa.SSAArrayLengthInstruction ins) |
void |
visitArrayLoad(com.ibm.wala.ssa.SSAArrayLoadInstruction ins) |
void |
visitArrayStore(com.ibm.wala.ssa.SSAArrayStoreInstruction ins) |
void |
visitBinaryOp(com.ibm.wala.ssa.SSABinaryOpInstruction ins) |
void |
visitCheckCast(com.ibm.wala.ssa.SSACheckCastInstruction ins) |
void |
visitComparison(com.ibm.wala.ssa.SSAComparisonInstruction ins) |
void |
visitConditionalBranch(com.ibm.wala.ssa.SSAConditionalBranchInstruction ins) |
void |
visitConversion(com.ibm.wala.ssa.SSAConversionInstruction ins) |
void |
visitGet(com.ibm.wala.ssa.SSAGetInstruction ins) |
void |
visitGetCaughtException(com.ibm.wala.ssa.SSAGetCaughtExceptionInstruction ssaGetCaughtExceptionInstruction) |
void |
visitGoto(com.ibm.wala.ssa.SSAGotoInstruction ssaGotoInstruction) |
void |
visitInstanceof(com.ibm.wala.ssa.SSAInstanceofInstruction ins) |
void |
visitInvoke(com.ibm.wala.ssa.SSAInvokeInstruction ins) |
void |
visitLoadMetadata(com.ibm.wala.ssa.SSALoadMetadataInstruction ssaLoadMetadataInstruction) |
void |
visitMonitor(com.ibm.wala.ssa.SSAMonitorInstruction ssaMonitorInstruction) |
void |
visitNew(com.ibm.wala.ssa.SSANewInstruction ssaNewInstruction) |
void |
visitPhi(com.ibm.wala.ssa.SSAPhiInstruction ins) |
void |
visitPi(com.ibm.wala.ssa.SSAPiInstruction ssaPiInstruction) |
void |
visitPut(com.ibm.wala.ssa.SSAPutInstruction ins) |
void |
visitReturn(com.ibm.wala.ssa.SSAReturnInstruction ins) |
void |
visitSwitch(com.ibm.wala.ssa.SSASwitchInstruction ins) |
void |
visitThrow(com.ibm.wala.ssa.SSAThrowInstruction ssaThrowInstruction) |
void |
visitUnaryOp(com.ibm.wala.ssa.SSAUnaryOpInstruction ins) |
public final SlotParamTable slotParamTable
private com.ibm.wala.ssa.IR ir
public StackSlotIVisitor(com.ibm.wala.ssa.IR ir, SlotParamTable slotParamTable)
public void visitGoto(com.ibm.wala.ssa.SSAGotoInstruction ssaGotoInstruction)
visitGoto
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitArrayLoad(com.ibm.wala.ssa.SSAArrayLoadInstruction ins)
visitArrayLoad
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitArrayStore(com.ibm.wala.ssa.SSAArrayStoreInstruction ins)
visitArrayStore
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitBinaryOp(com.ibm.wala.ssa.SSABinaryOpInstruction ins)
visitBinaryOp
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitUnaryOp(com.ibm.wala.ssa.SSAUnaryOpInstruction ins)
visitUnaryOp
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitConversion(com.ibm.wala.ssa.SSAConversionInstruction ins)
visitConversion
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitComparison(com.ibm.wala.ssa.SSAComparisonInstruction ins)
visitComparison
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitConditionalBranch(com.ibm.wala.ssa.SSAConditionalBranchInstruction ins)
visitConditionalBranch
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitSwitch(com.ibm.wala.ssa.SSASwitchInstruction ins)
visitSwitch
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitReturn(com.ibm.wala.ssa.SSAReturnInstruction ins)
visitReturn
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitGet(com.ibm.wala.ssa.SSAGetInstruction ins)
visitGet
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitPut(com.ibm.wala.ssa.SSAPutInstruction ins)
visitPut
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitInvoke(com.ibm.wala.ssa.SSAInvokeInstruction ins)
visitInvoke
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitNew(com.ibm.wala.ssa.SSANewInstruction ssaNewInstruction)
visitNew
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitArrayLength(com.ibm.wala.ssa.SSAArrayLengthInstruction ins)
visitArrayLength
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitThrow(com.ibm.wala.ssa.SSAThrowInstruction ssaThrowInstruction)
visitThrow
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitMonitor(com.ibm.wala.ssa.SSAMonitorInstruction ssaMonitorInstruction)
visitMonitor
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitCheckCast(com.ibm.wala.ssa.SSACheckCastInstruction ins)
visitCheckCast
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitInstanceof(com.ibm.wala.ssa.SSAInstanceofInstruction ins)
visitInstanceof
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitPhi(com.ibm.wala.ssa.SSAPhiInstruction ins)
visitPhi
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitPi(com.ibm.wala.ssa.SSAPiInstruction ssaPiInstruction)
visitPi
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitGetCaughtException(com.ibm.wala.ssa.SSAGetCaughtExceptionInstruction ssaGetCaughtExceptionInstruction)
visitGetCaughtException
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void visitLoadMetadata(com.ibm.wala.ssa.SSALoadMetadataInstruction ssaLoadMetadataInstruction)
visitLoadMetadata
in interface com.ibm.wala.ssa.SSAInstruction.IVisitor
public void populateVars(com.ibm.wala.ssa.SSAInstruction ins, int var)
ins
- Instruction currently being explored for slots.var
- Variable that we try to find its stack slot.