MCPcopy Create free account
hub / github.com/dynjs/dynjs / setupRescueMap

Method setupRescueMap

src/main/java/org/dynjs/ir/Scope.java:284–293  ·  view source on GitHub ↗
(List<BasicBlock> list, CFG cfg)

Source from the content-addressed store, hash-verified

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}

Callers 1

prepareIPCsMethod · 0.95

Calls 6

getLabelMethod · 0.95
getRescuerBBForMethod · 0.80
getTargetIPCMethod · 0.80
getIPCMethod · 0.80
putMethod · 0.65
getInstructionsMethod · 0.45

Tested by

no test coverage detected