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

Method prepareForCompilation

src/main/java/org/dynjs/ir/Scope.java:202–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200 }
201
202 public List<BasicBlock> prepareForCompilation() {
203 final CFG cfg = new CFG(this);
204 cfg.build(getInstructions());
205
206 List<BasicBlock> linearizedCFG = CFGLinearizer.linearize(cfg);
207
208 renameLocalVariables(linearizedCFG);
209
210 return linearizedCFG;
211 }
212
213 private void renameLocalVariables(List<BasicBlock> linearizedCFG) {
214 Map<Operand, Operand> renameMap = new HashMap<Operand, Operand>();

Callers 2

IRByteCodeCompilerMethod · 0.80
emitFunctionMethod · 0.80

Calls 4

buildMethod · 0.95
getInstructionsMethod · 0.95
linearizeMethod · 0.95
renameLocalVariablesMethod · 0.95

Tested by

no test coverage detected