public class SSAInvokeDynamicInstruction extends SSAInvokeInstruction
LambdaMetafactory.metafactory(java.lang.invoke.MethodHandles.Lookup,
String, java.lang.invoke.MethodType, java.lang.invoke.MethodType,
java.lang.invoke.MethodHandle, java.lang.invoke.MethodType),
The behavior of WALA for other uses of invokedynamic is currently unspecified (though it aims to not crash for any valid use).
SSAInstruction.IVisitor, SSAInstruction.Visitorparams, resultexception, siteNO_INDEX| Constructor and Description |
|---|
SSAInvokeDynamicInstruction(int iindex,
int[] params,
int exception,
CallSiteReference site,
com.ibm.wala.shrikeCT.BootstrapMethodsReader.BootstrapMethod bootstrap) |
SSAInvokeDynamicInstruction(int iindex,
int result,
int[] params,
int exception,
CallSiteReference site,
com.ibm.wala.shrikeCT.BootstrapMethodsReader.BootstrapMethod bootstrap) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
com.ibm.wala.shrikeCT.BootstrapMethodsReader.BootstrapMethod |
getBootstrap() |
java.lang.String |
toString(SymbolTable symbolTable)
Mark the instruction as an invokedynamic.
|
assertParamsKosher, getNumberOfPositionalParameters, getNumberOfReturnValues, getNumberOfUses, getReturnValue, getUse, hashCode, visitgetCallSite, getDeclaredResultType, getDeclaredTarget, getDef, getDef, getException, getInvocationCode, getNumberOfDefs, getProgramCounter, getReceiver, hasDef, isDispatch, isFallThrough, isPEI, isSpecial, isStaticequals, getExceptionTypes, getValueString, iIndex, setInstructionIndex, toStringpublic SSAInvokeDynamicInstruction(int iindex,
int result,
int[] params,
int exception,
CallSiteReference site,
com.ibm.wala.shrikeCT.BootstrapMethodsReader.BootstrapMethod bootstrap)
public SSAInvokeDynamicInstruction(int iindex,
int[] params,
int exception,
CallSiteReference site,
com.ibm.wala.shrikeCT.BootstrapMethodsReader.BootstrapMethod bootstrap)
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 SSAInvokeInstructionpublic com.ibm.wala.shrikeCT.BootstrapMethodsReader.BootstrapMethod getBootstrap()
public java.lang.String toString(SymbolTable symbolTable)
toString in class SSAAbstractInvokeInstructionsymbolTable - the symbol tableSSAAbstractInvokeInstruction.toString(SymbolTable) with
"[invokedynamic] " pre-pended