public class SSACache
extends java.lang.Object
This doesn't work very well ... GCs don't do such a great job with SoftReferences ... revamp it.
| Constructor and Description |
|---|
SSACache(IRFactory<IMethod> factory,
com.ibm.wala.ssa.IAuxiliaryCache irCache,
com.ibm.wala.ssa.IAuxiliaryCache duCache) |
| Modifier and Type | Method and Description |
|---|---|
DefUse |
findOrCreateDU(IMethod m,
Context c,
SSAOptions options) |
DefUse |
findOrCreateDU(IR ir,
Context C) |
IR |
findOrCreateIR(IMethod m,
Context c,
SSAOptions options) |
void |
invalidate(IMethod method,
Context c)
Invalidate all cached information for a <method,context> pair
|
void |
invalidateDU(IMethod method,
Context c)
Invalidate the cached
DefUse for a <method,context> pair |
void |
invalidateIR(IMethod method,
Context c)
Invalidate the cached IR for a <method,context> pair
|
void |
wipe()
The existence of this is unfortunate.
|
public IR findOrCreateIR(IMethod m, Context c, SSAOptions options)
m - a "normal" (bytecode-based) methodoptions - options governing ssa constructionjava.lang.IllegalArgumentException - if m is nullpublic DefUse findOrCreateDU(IMethod m, Context c, SSAOptions options)
m - a methodoptions - options governing ssa constructionjava.lang.IllegalArgumentException - if m is nullpublic DefUse findOrCreateDU(IR ir, Context C)
DefUse information for m, built according to the specified options. null if
unavailablejava.lang.IllegalArgumentException - if ir is nullpublic void wipe()
public void invalidateIR(IMethod method, Context c)
public void invalidateDU(IMethod method, Context c)
DefUse for a <method,context> pair