Package anvil.codec

Examples of anvil.codec.Code.pop()


     
      isfalse.bind();
     
    } else {
      _assignment.compile(context, datanode);
      code.pop();
      _statement.compile(context);
      handler.callFinally();
      handler.jumpOut();
    }
  }
View Full Code Here


    context.pushCode(code);

    //code.println("INTERFACE-START:"+getDescriptor());
    code.getstatic(pool.addFieldRef(_parent.getDescriptor(),
      "_members", "[Ljava/lang/Object;"));
    code.pop();

    int n = _bases.length;
    code.iconst(n);
    code.anewarray("java/lang/String");
    for(int i=0; i<n; i++) {
View Full Code Here

  {
    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) {
      context.boolean2any();
    }   
View Full Code Here

    Field bases = clazz.createField("_bases", "[Ljava/lang/String;", Code.ACC_PUBLIC|Code.ACC_STATIC);
    Code code = clazz.getStatic().getCode();
    context.pushCode(code);
   
    code.getstatic(pool.addFieldRef(_parent.getDescriptor(), "_members", "[Ljava/lang/Object;"));
    code.pop();

    compileConstructors(context, typefield1);

    compileMembers(context, _types.size(), _types.elements());
   
View Full Code Here

    while(e.hasMoreElements()) {
      Type type = (Type)e.nextElement();
      if (type.getType() == CLASS) {
        code.getstatic(pool.addFieldRef(type.getTypeRef(pool),
          "_members", "[Ljava/lang/Object;"));
        code.pop();
      }
    }

    code.vreturn();
View Full Code Here

    } else if (toType < 0) {
      code.invokestatic(-toType);
    }
    switch(treturn) {
    case 0:
      code.pop();
      code.vreturn();
      break;
    case 1:
      code.ireturn();
      break;
View Full Code Here

    Code code = clazz.getStatic().getCode();
    context.pushCode(code);
    //code.println("INTERFACE-START:"+getDescriptor());
    code.getstatic(pool.addFieldRef(_parent.getDescriptor(), "_members", "[Ljava/lang/Object;"));
    code.pop();
    //code.println("INTERFACE-END:"+getDescriptor());
    code.vreturn();
    context.popCode();

    super.compile(context);
View Full Code Here

    if (_init != null) {
      int n = _init.length;
      for(int i = 0; i<n; i++) {
        _init[i].compile(context, Expression.GET);
        code.pop();
      }
    }

    Source skip = null;
    if (_action != null) {
View Full Code Here

    if (_action != null) {
      context.location(getLocation());
      int n = _action.length;
      for(int i = 0; i<n; i++) {
        _action[i].compile(context, Expression.GET);
        code.pop();
      }
      skip.bind();
    }

    if (_condition != null) {
View Full Code Here

        break;       
      default:
        code.go_to(isfalse);
      }
    }
    code.pop();
    code.iconst(true);
    Source toend = code.go_to();
    isfalse.bind();
    code.pop();
    code.iconst(false);
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.