Examples of dup()


Examples of anvil.codec.Code.dup()

      {
        Code code_ = context.getCode();
        ConstantPool pool = code_.getPool();
        int clazz = getClassReference(pool);
        code_.anew(clazz);
        code_.dup();
        code_.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
      }     
    });
    code.pop();
    _stmt.compile(context);
View Full Code Here

Examples of anvil.codec.Code.dup()

      case Type.CONSTRUCTOR:
      case Type.CONSTANT_VARIABLE:
      case Type.STATIC_VARIABLE:
      case Type.MEMBER_VARIABLE:
        {
          code.dup();
          code.iconst(i++);
          code.anew(intclazz);
          code.dup();
          code.iconst(type.getType());
          code.invokespecial(intclazzctor);
View Full Code Here

Examples of anvil.codec.Code.dup()

      case Type.MEMBER_VARIABLE:
        {
          code.dup();
          code.iconst(i++);
          code.anew(intclazz);
          code.dup();
          code.iconst(type.getType());
          code.invokespecial(intclazzctor);
          code.aastore();

          code.dup();
View Full Code Here

Examples of anvil.codec.Code.dup()

          code.dup();
          code.iconst(type.getType());
          code.invokespecial(intclazzctor);
          code.aastore();

          code.dup();
          code.iconst(i++);
          code.astring(type.getName());
          code.aastore();

          code.dup();
View Full Code Here

Examples of anvil.codec.Code.dup()

          code.dup();
          code.iconst(i++);
          code.astring(type.getName());
          code.aastore();

          code.dup();
          code.iconst(i++);
          Doc doc = type.getDocument();
          if (doc != null) {
            doc.compile(code);
          } else {
View Full Code Here

Examples of anvil.codec.Code.dup()

          } else {
            code.aconst_null();
          }
          code.aastore();     

          code.dup();
          code.iconst(i++);
          switch(type.getType()) {
          case Type.FUNCTION:
          case Type.METHOD:
          case Type.INTERFACE_METHOD:
View Full Code Here

Examples of anvil.codec.Code.dup()

  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    _left.compile(context, GET_BOOLEAN);
    code.dup();
    Source source = code.if_ne();
    code.pop();
    _right.compile(context, GET_BOOLEAN);
    source.bind();
    if (operation != GET_BOOLEAN) {
View Full Code Here

Examples of anvil.codec.Code.dup()

  public void compile(ByteCompiler context, Node child)
  {
    child.compile(context, GET);
    Code code = context.getCode();
    code.dup();
    code.putstatic(_constant.getTypeRef(code.getPool()));
  }


  public void compile(ByteCompiler context, int operation)
View Full Code Here

Examples of anvil.codec.Code.dup()

      "(Lanvil/script/Function;Lanvil/script/StackFrame;)V";
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    int anyfunction = pool.addClass("anvil/core/runtime/AnyFunction");
    code.anew(anyfunction);
    code.dup();
    int parent = _function.getParent().getTypeRef(pool);
    int field = pool.addFieldRef(parent, name, "Lanvil/script/Function;");
    if (in_class) {
      code.self();
    }
View Full Code Here

Examples of anvil.codec.Code.dup()

      code.self();

      code.iconst(5);
      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();
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.