Examples of aload_first()


Examples of anvil.codec.Code.aload_first()

        }
        break;

      case CompilableFunction.PARAMETER_CONTEXT:
        if (contextindex == -1) {
          code.aload_first();
        } else {
          code.aload(contextindex);
        }
        break;
      }
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    case EXPR_ATTRIBUTE:
      right.compile(context, GET);
      AttributeNode attr = (AttributeNode)left;
      attr.getChild().compile(context, GET);
      code.astring(attr.getAttribute());
      code.aload_first();
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_CONTEXT, getAssignmentMethod(),
        "(Lanvil/core/Any;Lanvil/core/Any;Ljava/lang/String;Lanvil/script/Context;)Lanvil/core/Any;"));
      break;
 
    case Node.EXPR_REFERENCE:
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    case Node.EXPR_REFERENCE:
      right.compile(context, GET);
      ReferenceNode ref = (ReferenceNode)left;
      ref.getChild(0).compile(context, GET);
      ref.getChild(1).compile(context, GET);
      code.aload_first();
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_CONTEXT, getAssignmentMethod(),
        "(Lanvil/core/Any;Lanvil/core/Any;Lanvil/core/Any;Lanvil/script/Context;)Lanvil/core/Any;"));
      break;
   
    case Node.EXPR_EMPTY_REFERENCE:
View Full Code Here

Examples of anvil.codec.Code.aload_first()

      for(int i=0; i<n; i++) {
        final int c = i;
        compile(context, getChild(i), new Node() {
          public void compile(ByteCompiler context, int operation)
          {
            code.aload_first();
            code.aload(tmp);
            code.iconst(c);
            code.invokevirtual(nth);
          }
        });
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  public void compile(ByteCompiler context)
  {
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    code.aload_first();
    FunctionStatement function = getFunctionStatement();
    if (function.isGenerator()) {
      code.aload(function.getFrameIndex());
      code.invokevirtual(pool.addMethodRef("anvil/script/Generator", "setClosedState", "()V"));
    }
View Full Code Here

Examples of anvil.codec.Code.aload_first()

            context.text(code, _converters.convert(expr.constant().toString()), newline);
          } else {
            if (expr.needLineNumbers()) {
              context.location(expr.getLocation());     
            }
            code.aload_first();
            if (_conversions == 0) {
              expr.compile(context, Expression.GET);
              code.invokevirtual(code.getPool().addMethodRef(context.TYPE_CONTEXT,
                newline ? "println" : "print" , "(Lanvil/core/Any;)V"));
            } else {
View Full Code Here

Examples of anvil.codec.Code.aload_first()

                newline ? "println" : "print" , "(Ljava/lang/String;)V"));
            }
          }
        }
      } else if (_newline) {
        code.aload_first();
        code.invokevirtual(code.getPool().addMethodRef(context.TYPE_CONTEXT, "println", "()V"));
      }
    }
  }
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  {
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    boolean inClass = (_function.getType() != Type.FUNCTION);
   
    code.aload_first();
    if (inClass) {
      code.self();
    }
   
    int parent = _function.getParent().getTypeRef(pool);
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    code.aload_first();
    _left.compile(context, GET);
    _right.compile(context, GET);
    code.invokevirtual(pool.addMethodRef(context.TYPE_CONTEXT,
      "pipe", "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    if (operation == GET_BOOLEAN) {
View Full Code Here

Examples of anvil.codec.Code.aload_first()


  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    code.aload_first();
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_CONTEXT,
     "global", "()Lanvil/core/Any;"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
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.