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
-
Method Summary
Modifier and TypeMethodDescriptionfindOrCreateDU
(IMethod m, Context c, SSAOptions options) findOrCreateDU
(IR ir, Context C) findOrCreateIR
(IMethod m, Context c, SSAOptions options) void
invalidate
(IMethod method, Context c) Invalidate all cached information for a <method,context> pairvoid
invalidateDU
(IMethod method, Context c) Invalidate the cachedDefUse
for a <method,context> pairvoid
invalidateIR
(IMethod method, Context c) Invalidate the cached IR for a <method,context> pairvoid
wipe()
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:
DefUse
information 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
-