// System.out.println("checking: " + instr);
CallBase call = (CallBase)instr;
CallSite cs = call.getCallSite();
// System.out.println("callsite: " + cs);
if (cs != null && (cs instanceof CachingCallSite)) {
CachingCallSite ccs = (CachingCallSite)cs;
// SSS FIXME: To use this, CachingCallSite.java needs modification
// isPolymorphic or something equivalent needs to be enabled there.
if (ccs.isOptimizable()) {
CacheEntry ce = ccs.getCache();
DynamicMethod tgt = ce.method;
if (tgt instanceof InterpretedIRMethod) {
InterpretedIRMethod dynMeth = (InterpretedIRMethod)tgt;
IRScope tgtMethod = dynMeth.getIRMethod();
Instr[] instrs = tgtMethod.getInstrsForInterpretation();