Package anvil.codec

Examples of anvil.codec.Code.dup()


    code.iconst(_dependencies.size()*2);
    code.anewarray("java/lang/String");
    Iterator iter = _dependencies.values().iterator();
    for(int i=0; iter.hasNext(); ) {
      Dependency dep = (Dependency)iter.next();
      code.dup();
      code.iconst(i++);
      code.astring(dep.getPathinfo());
      code.aastore();
      code.dup();
      code.iconst(i++);
View Full Code Here


      Dependency dep = (Dependency)iter.next();
      code.dup();
      code.iconst(i++);
      code.astring(dep.getPathinfo());
      code.aastore();
      code.dup();
      code.iconst(i++);
      code.astring(dep.getDescriptor());
      code.aastore();
    }
    code.putstatic(field);
View Full Code Here

      break;

    case GET_REF:
      int refclass = pool.addClass("anvil/core/AnyEscapedLocalRef");
      code.anew(refclass);
      code.dup();
      code.aload(_context.getFrameIndex());
      code.iconst(_depth);
      code.iconst(_index);
      code.invokespecial(pool.addMethodRef(refclass, "<init>", "(Lanvil/script/StackFrame;II)V"));
      break;
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.