Package anvil.codec

Examples of anvil.codec.Code.pop()


          _expression.compile(context, Expression.GET);
        }
      } else {
        _expression.compile(context, Expression.GET);
      }
      code.pop();
     
    }
   
  }
View Full Code Here


      code.aload(function.getFrameIndex());
      code.iconst(getSlot());
      code.aload(_index);
      code.invokevirtual(code.getPool().addMethodRef(context.TYPE_STACKFRAME,
        "setLocal", "(ILanvil/core/Any;)Lanvil/core/Any;"));
      code.pop();
    }
  }


  public void compileInit(ByteCompiler context)
View Full Code Here

  {
    Code code = context.getCode();
    _left.compile(context, GET_BOOLEAN);
    code.dup();
    Source source = code.if_eq();
    code.pop();
    _right.compile(context, GET_BOOLEAN);
    source.bind();
    if (operation != GET_BOOLEAN) {
      context.boolean2any();
    }   
View Full Code Here

      code.astore(returnto);
      code.aload_first();
      code.invokevirtual(contextframe);
      code.invokevirtual(pool.addMethodRef("anvil/script/StackFrame",
        "pop", "()Lanvil/core/Any;"));
      code.pop();
      if (_release != null) {
        _release.compile(context, Node.GET);
        code.pop();
      }
      code.ret(returnto);
View Full Code Here

      code.invokevirtual(pool.addMethodRef("anvil/script/StackFrame",
        "pop", "()Lanvil/core/Any;"));
      code.pop();
      if (_release != null) {
        _release.compile(context, Node.GET);
        code.pop();
      }
      code.ret(returnto);
      handler.endFinally();
      handler.end();
     
View Full Code Here

      code.endLocal(_framelocal);
     
    } else {
      if (_init != null) {
        _init.compile(context, Node.GET);
        code.pop();
      }
    }
  }
 
View Full Code Here

            code.aload(tmp);
            code.iconst(c);
            code.invokevirtual(nth);
          }
        });
        code.pop();
      }
      code.aload(tmp);
      code.endLocal(tmp);
    }
    if (operation == GET_BOOLEAN) {
View Full Code Here

    Code code = context.getCode();
    code.dup();
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_ANY,
      "toBoolean", "()Z"));
    Source iftrue = code.if_ne();
    code.pop();
    _right.compile(context, GET);
    iftrue.bind();
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
View Full Code Here

      boolean assigned = false;
      for(int i=0; i<n; i++) {
        if (_types.getChild(i).typeOf() != Node.EXPR_TYPE) {
          _assignment.compile(context, datanode);
          code.pop();
          assigned = true;
        }
      }

      for(int i=0; i<n; i++) {
View Full Code Here

     
      istrue.bind();
     
      if (!assigned) {
        _assignment.compile(context, datanode);
        code.pop();
      }
     
      _statement.compile(context);
      handler.callFinally();
      handler.jumpOut();
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.