(List<BasicBlock> list, CFG cfg)
| 282 | } |
| 283 | |
| 284 | public void setupRescueMap(List<BasicBlock> list, CFG cfg) { |
| 285 | rescueMap = new HashMap<Integer, Integer>(); |
| 286 | for (BasicBlock basicBlock : list) { |
| 287 | BasicBlock rescuerBB = cfg.getRescuerBBFor(basicBlock); |
| 288 | int rescuerPC = (rescuerBB == null) ? -1 : rescuerBB.getLabel().getTargetIPC(); |
| 289 | for (Instruction instruction : basicBlock.getInstructions()) { |
| 290 | rescueMap.put(instruction.getIPC(), rescuerPC); |
| 291 | } |
| 292 | } |
| 293 | } |
| 294 | } |
no test coverage detected