/** * processes a register store by updating the appropriate scope block to mark this register as being read in the block * * @param seen * the currently parsed opcode * @param pc * the current program counter */ private void sawLoad(int seen, int pc) { int reg = RegisterUtils.getLoadReg(this, seen); if (!ignoreRegs.get(reg)) { ScopeBlock sb = findScopeBlock(rootScopeBlock, pc); if (sb != null) { sb.addLoad(reg, pc); } else { ignoreRegs.set(reg); } } }
sb.addStore(reg, pc, assoc); if (sawDup) { sb.addLoad(reg, pc);
sb.addStore(reg, pc, assoc); if (sawDup) { sb.addLoad(reg, pc);
/** * processes a register store by updating the appropriate scope block to mark this register as being read in the block * * @param seen * the currently parsed opcode * @param pc * the current program counter */ private void sawLoad(int seen, int pc) { int reg = RegisterUtils.getLoadReg(this, seen); if (!ignoreRegs.get(reg)) { ScopeBlock sb = findScopeBlock(rootScopeBlock, pc); if (sb != null) { sb.addLoad(reg, pc); } else { ignoreRegs.set(reg); } } }