Package clojure.asm.commons

Examples of clojure.asm.commons.GeneratorAdapter.endMethod()


      ctorgen.visitVarInsn(OBJECT_TYPE.getOpcode(Opcodes.ILOAD), a);
      ctorgen.putField(fntype, lb.name, OBJECT_TYPE);
      }
    ctorgen.returnValue();
    //  ctorgen.visitMaxs(1, 1);
    ctorgen.endMethod();

    //override of invoke/doInvoke for each method
    for(ISeq s = RT.seq(methods); s != null; s = s.rest())
      {
      FnMethod method = (FnMethod) s.first();
View Full Code Here


      Var.popThreadBindings();
      }

    gen.returnValue();
    //gen.visitMaxs(1, 1);
    gen.endMethod();
  }
}

static class LocalBinding{
  final Symbol sym;
View Full Code Here

//      }
//    clinitgen.mark(end);
//    clinitgen.visitLocalVariable("constants", "[Ljava/lang/Object;", null, begin, end, 0);
    clinitgen.returnValue();

    clinitgen.endMethod();
//    clinitgen.visitMaxs(1, 1);
    //instance fields for closed-overs
    for(ISeq s = RT.keys(closes); s != null; s = s.rest())
      {
      LocalBinding lb = (LocalBinding) s.first();
View Full Code Here

//      }
//    clinitgen.mark(end);
//    clinitgen.visitLocalVariable("constants", "[Ljava/lang/Object;", null, begin, end, 0);
    clinitgen.returnValue();

    clinitgen.endMethod();
//    clinitgen.visitMaxs(1, 1);
    //instance fields for closed-overs
    for(ISeq s = RT.keys(closes); s != null; s = s.rest())
      {
      LocalBinding lb = (LocalBinding) s.first();
View Full Code Here

//        ctorgen.visitLocalVariable(lb.name, "Ljava/lang/Object;", null, start, end, a);
//        }
//      }
    ctorgen.returnValue();
    //  ctorgen.visitMaxs(1, 1);
    ctorgen.endMethod();

    //override of invoke/doInvoke for each method
    for(ISeq s = RT.seq(methods); s != null; s = s.rest())
      {
      FnMethod method = (FnMethod) s.first();
View Full Code Here

      Var.popThreadBindings();
      }

    gen.returnValue();
    //gen.visitMaxs(1, 1);
    gen.endMethod();
  }

  void emitClearLocals(GeneratorAdapter gen){
    //this seems shaky given primitive locals - revisit
    for(int i = 1; i < numParams() + 1; i++)
View Full Code Here

      Var.popThreadBindings();
      }

    gen.returnValue();
    //gen.visitMaxs(1, 1);
    gen.endMethod();

  //generate the regular invoke, calling the prim method
    Method m = new Method(getMethodName(), OBJECT_TYPE, getArgTypes());

    gen = new GeneratorAdapter(ACC_PUBLIC,
View Full Code Here

    gen.box(getReturnType());


    gen.returnValue();
    //gen.visitMaxs(1, 1);
    gen.endMethod();

  }
  public void doEmit(ObjExpr fn, ClassVisitor cv){
    Method m = new Method(getMethodName(), getReturnType(), getArgTypes());
View Full Code Here

      Var.popThreadBindings();
      }

    gen.returnValue();
    //gen.visitMaxs(1, 1);
    gen.endMethod();
  }



  public final PersistentVector reqParms(){
View Full Code Here

      Var.popThreadBindings();
      }

    gen.returnValue();
    //gen.visitMaxs(1, 1);
    gen.endMethod();
  }

    void emitClearLocals(GeneratorAdapter gen){
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.