Examples of invokestatic()


Examples of anvil.codec.Code.invokestatic()

      {
        ReferenceNode ref = (ReferenceNode)child;
        ref.getLeft().compile(context, GET);
        ref.getRight().compile(context, GET);
        code.aload_first();
        code.invokestatic(pool.addMethodRef(context.TYPE_CONTEXT, "predec",
          "(Lanvil/core/Any;Lanvil/core/Any;Lanvil/script/Context;)Lanvil/core/Any;"));
      }
      break;

    default:
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

  public void compile(ByteCompiler context, int operation)
  {
    super.compile(context, GET);
    Code code = context.getCode();
    if (operation == GET_BOOLEAN) {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "gt", "(Lanvil/core/Any;Lanvil/core/Any;)Z"));
    } else {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "gtA", "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    }
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

    Code code = context.getCode();
    if (operation == GET_BOOLEAN) {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "gt", "(Lanvil/core/Any;Lanvil/core/Any;)Z"));
    } else {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "gtA", "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    }
  }

}
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

  public void compile(ByteCompiler context, int operation)
  {
    super.compile(context, GET);
    Code code = context.getCode();
    if (operation == GET_BOOLEAN) {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "ne", "(Lanvil/core/Any;Lanvil/core/Any;)Z"));
    } else {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "neA", "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    }
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

    Code code = context.getCode();
    if (operation == GET_BOOLEAN) {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "ne", "(Lanvil/core/Any;Lanvil/core/Any;)Z"));
    } else {
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
        "neA", "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    }
  }
 
}
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      code.aload(l_parameters);
      code.iconst(0);
      code.aload(l_newparameters);
      code.iconst(1);
      code.iload(l_length);
      code.invokestatic(pool.addMethodRef("java/lang/System", "arraycopy", "(Ljava/lang/Object;ILjava/lang/Object;II)V"));
      code.aload(l_newparameters);
      code.iconst(0);
      code.iload(l_index);
      code.invokestatic(pool.addMethodRef("anvil/core/Register", "getAnyNameOf", "(I)Lanvil/core/Any;"));
      code.aastore();
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      code.iload(l_length);
      code.invokestatic(pool.addMethodRef("java/lang/System", "arraycopy", "(Ljava/lang/Object;ILjava/lang/Object;II)V"));
      code.aload(l_newparameters);
      code.iconst(0);
      code.iload(l_index);
      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);
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      code.anewarray(context.TYPE_ANY);

      code.dup();
      code.iconst(0);
      code.iload(l_index);
      code.invokestatic(pool.addMethodRef("anvil/core/Register", "getNameOf", "(I)Ljava/lang/String;"));
      code.invokestatic(pool.addMethodRef(context.TYPE_ANY, "create", "(Ljava/lang/String;)Lanvil/core/Any;"));
      code.aastore();

      for(int i=0; i<4; i++) {
        code.dup();
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      code.dup();
      code.iconst(0);
      code.iload(l_index);
      code.invokestatic(pool.addMethodRef("anvil/core/Register", "getNameOf", "(I)Ljava/lang/String;"));
      code.invokestatic(pool.addMethodRef(context.TYPE_ANY, "create", "(Ljava/lang/String;)Lanvil/core/Any;"));
      code.aastore();

      for(int i=0; i<4; i++) {
        code.dup();
        code.iconst(i+1);
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

    if (parameters > 0) {
      code.addLocals(parameters);
    }
    if (getContext) {
      contextindex = code.addLocal();
      code.invokestatic(pool.addMethodRef(context.TYPE_CONTEXT, "getInstance", "()Lanvil/script/Context;"));
      code.astore(contextindex);
    }
    code.self();
    context.compileArgumentList(function, nodes, contextindex);
    code.invokevirtual(function.getTypeRef(pool));
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.