示例#1
0
文件: Scope.java 项目: njoonk/dynjs
  public Instruction[] prepareForInterpret() {
    final CFG cfg = new CFG(this);
    final DirectedGraph<BasicBlock> graph = cfg.build(getInstructions());

    // FIXME: Add debug config for this
    System.out.println(cfg.toStringInstrs());
    System.out.println(graph.toString());

    // FIXME: We don't save this linearized set yet
    return prepareIPCs(CFGLinearizer.linearize(cfg), cfg);
  }
示例#2
0
文件: Scope.java 项目: njoonk/dynjs
 public List<BasicBlock> prepareForCompilation() {
   final CFG cfg = new CFG(this);
   cfg.build(getInstructions());
   return CFGLinearizer.linearize(cfg);
 }