Examples of aload()


Examples of anvil.codec.Code.aload()

      code.invokestatic(pool.addMethodRef("anvil/core/Register", "getAnyNameOf", "(I)Lanvil/core/Any;"));
      code.aastore();
      code.getstatic(pool.addFieldRef(clazz.getIndex(), "m_"+function.getName(), "Lanvil/script/Function;"));
      code.aload(l_context);
      code.self();
      code.aload(l_newparameters);
      code.invokeinterface(pool.addInterfaceMethodRef("anvil/script/Function",
        "execute", "(Lanvil/script/Context;Lanvil/core/Any;[Lanvil/core/Any;)Lanvil/core/Any;"));
      code.areturn();
      context.popCode();
    }
View Full Code Here

Examples of anvil.codec.Code.aload()

      int l_base = code.addLocal();
      code.addLocals(3);

      code.getstatic(pool.addFieldRef(clazz.getIndex(), "m_"+function.getName(), "Lanvil/script/Function;"));

      code.aload(l_context);

      code.self();

      code.iconst(5);
      code.anewarray(context.TYPE_ANY);
View Full Code Here

Examples of anvil.codec.Code.aload()

      code.aastore();

      for(int i=0; i<4; i++) {
        code.dup();
        code.iconst(i+1);
        code.aload(l_base + i);
        code.aastore();
      }

      code.invokeinterface(pool.addInterfaceMethodRef("anvil/script/Function",
        "execute", "(Lanvil/script/Context;Lanvil/core/Any;[Lanvil/core/Any;)Lanvil/core/Any;"));
View Full Code Here

Examples of anvil.codec.Code.aload()

    }
   
    if (methods != null) {
      int n = methods.length;
      if (n>3) {
        code.aload(l_attr);
        code.invokevirtual(pool.addMethodRef("java/lang/String", "hashCode", "()I"));
        Source notfound = code.getSource();
        Switch select = code.select();
        for(int i=0; i<n; i++) {
          select.addCase(methods[i].getName().substring(prefixLength).hashCode());
View Full Code Here

Examples of anvil.codec.Code.aload()

  {
    Code code = context.getCode();
    int lock = code.addLocal();
    _expression.compile(context, Expression.GET);
    code.astore(lock);
    code.aload(lock);
    code.monitorenter();
    ExceptionHandler handler = code.startExceptionHandler(true);
    _handler = handler;
    if (_statement == null) {
      code.nop();
View Full Code Here

Examples of anvil.codec.Code.aload()

    handler.endProtectedRegion();
    handler.startCatch(0);
    int thrown = code.addLocal();
    code.astore(thrown);
    handler.callFinally();
    code.aload(thrown);
    code.athrow();
    handler.endCatches();
    _handler = null;

    handler.startFinally();
View Full Code Here

Examples of anvil.codec.Code.aload()

    _handler = null;

    handler.startFinally();
    int returnto = code.addLocal();
    code.astore(returnto);
    code.aload(lock);
    code.monitorexit();
    code.ret(returnto);
    handler.endFinally();

    handler.end();
View Full Code Here

Examples of anvil.codec.Code.aload()

    Method method = clazz.createMethod("equals", "(Ljava/lang/Object;)Z", Code.ACC_PUBLIC);
    Code code = method.getCode();
    ConstantPool pool = code.getPool();
    context.pushCode(code);
    code.addLocal();
    code.aload(1);
    code.instance_of(context.TYPE_ANY);
    Source isfalse = code.if_eq();
    code.invokestatic(pool.addMethodRef(context.TYPE_CONTEXT, "getInstance", "()Lanvil/script/Context;"));
    code.astore(code.addLocal());
    code.self();
View Full Code Here

Examples of anvil.codec.Code.aload()

    }
   
    public void compile(ByteCompiler context, int operation)
    {
      Code code = context.getCode();
      code.aload(_local);
      code.checkcast(context.TYPE_ANY);
    }
   
  }
 
View Full Code Here

Examples of anvil.codec.Code.aload()

    }
   
    public void compile(ByteCompiler context, int operation)
    {
      Code code = context.getCode();
      code.aload(_local);
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY, "create",
        "(Ljava/lang/String;)Lanvil/core/Any;"));
    }
   
  } 
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.