Package anvil.codec

Examples of anvil.codec.Code.iconst()


    switch(operation) {
    case GET:
    case CHECK:
      code.aload(_context.getFrameIndex());
      code.iconst(_depth);
      code.iconst(_index);
      code.invokevirtual(code.getPool().addMethodRef(context.TYPE_STACKFRAME,
        "getLocal", "(II)Lanvil/core/Any;"));
      break;

    case GET_REF:
View Full Code Here


    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;

    case GET_BOOLEAN:
View Full Code Here

      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;

    case GET_BOOLEAN:
      code.aload(_context.getFrameIndex());
View Full Code Here

      code.invokespecial(pool.addMethodRef(refclass, "<init>", "(Lanvil/script/StackFrame;II)V"));
      break;

    case GET_BOOLEAN:
      code.aload(_context.getFrameIndex());
      code.iconst(_depth);
      code.iconst(_index);
      code.invokevirtual(code.getPool().addMethodRef(context.TYPE_STACKFRAME,
        "getLocal", "(II)Lanvil/core/Any;"));
      context.any2boolean();
      break;
View Full Code Here

      break;

    case GET_BOOLEAN:
      code.aload(_context.getFrameIndex());
      code.iconst(_depth);
      code.iconst(_index);
      code.invokevirtual(code.getPool().addMethodRef(context.TYPE_STACKFRAME,
        "getLocal", "(II)Lanvil/core/Any;"));
      context.any2boolean();
      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.