Exemplo n.º 1
0
  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);
  }
Exemplo n.º 2
0
 public List<BasicBlock> prepareForCompilation() {
   final CFG cfg = new CFG(this);
   cfg.build(getInstructions());
   return CFGLinearizer.linearize(cfg);
 }