Package erjang.beam

Examples of erjang.beam.BlockVisitor


      mv.visitFunction(sig.fun, sig.arity, sig.label);
    accept(fv);
  }

  public void accept(FunctionVisitor fv) {
    BlockVisitor bv = null;
    for (Insn insn : body) {
      if (insn.opcode == BeamOpcode.label) {
        if (bv != null) bv.visitEnd();
        bv = fv.visitLabeledBlock(((Insn.I)insn).i1);
      } else {
        bv.visitInsn(insn);
      }
    }
    if (bv != null) bv.visitEnd();
    fv.visitEnd();
  }
View Full Code Here


      super.fv.visitEnd();
    }

    private void function_visit_end_aux(LabeledBlock block, int ext_label, BeamExceptionHandler exh) {
      BlockVisitor vis = super.fv.visitLabeledBlock(ext_label);
      try {
        block.accept(vis, exh);
      } catch (Error e) {
        dump();
        throw e;
View Full Code Here

TOP

Related Classes of erjang.beam.BlockVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.