Class SSACache
java.lang.Object
com.ibm.wala.ssa.SSACache
A mapping from IMethod -> SSAOptions -> SoftReference -> Something
This doesn't work very well ... GCs don't do such a great job with SoftReferences ... revamp it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindOrCreateDU(IMethod m, Context c, SSAOptions options) findOrCreateDU(IR ir, Context C) findOrCreateIR(IMethod m, Context c, SSAOptions options) voidinvalidate(IMethod method, Context c) Invalidate all cached information for a <method,context> pairvoidinvalidateDU(IMethod method, Context c) Invalidate the cachedDefUsefor a <method,context> pairvoidinvalidateIR(IMethod method, Context c) Invalidate the cached IR for a <method,context> pairvoidwipe()The existence of this is unfortunate.
-
Constructor Details
-
SSACache
-
-
Method Details
-
findOrCreateIR
- Parameters:
m- a "normal" (bytecode-based) methodoptions- options governing ssa construction- Returns:
- an IR for m, built according to the specified options. null if m is abstract or native.
- Throws:
IllegalArgumentException- if m is null
-
findOrCreateDU
- Parameters:
m- a methodoptions- options governing ssa construction- Returns:
- DefUse information for m, built according to the specified options. null if unavailable
- Throws:
IllegalArgumentException- if m is null
-
findOrCreateDU
- Returns:
DefUseinformation for m, built according to the specified options. null if unavailable- Throws:
IllegalArgumentException- if ir is null
-
wipe
public void wipe()The existence of this is unfortunate. -
invalidateIR
-
invalidateDU
-
invalidate
-