Package anvil.codec

Examples of anvil.codec.Code.go_to()


  {
    getChild(0).compile(context, GET_BOOLEAN);
    Code code = context.getCode();
    Source isfalse = code.if_eq();
    getChild(1).compile(context, operation);
    Source out = code.go_to();
    code.popop();
    isfalse.bind();
    getChild(2).compile(context, operation);
    out.bind();
  }
View Full Code Here


    if (operation == GET_BOOLEAN) {
      code.iconst(false);
    } else {
      code.getstatic(pool.addFieldRef(context.TYPE_ANY, "FALSE", "Lanvil/core/Any;"));
    }
    Source toend = code.go_to();
    notequal.bind();
    if (operation == GET_BOOLEAN) {
      code.iconst(true);
    } else {
      code.getstatic(pool.addFieldRef(context.TYPE_ANY, "TRUE", "Lanvil/core/Any;"));
View Full Code Here

      }
    }

    Source skip = null;
    if (_action != null) {
      skip = code.go_to();
    }

    Target start = code.getTarget();
    _startscope = code.getSource();
    _endscope = code.getSource();
View Full Code Here

        break;
      }
    }

    _statement.compile(context);
    code.go_to(_startscope);
    _endscope.bind();
    _startscope.bind(start);
  }
 
View Full Code Here

        break;       
      case GREATER:
        code.if_le(isfalse);
        break;       
      default:
        code.go_to(isfalse);
      }
    }
    code.pop();
    code.iconst(true);
    Source toend = code.go_to();
View Full Code Here

        code.go_to(isfalse);
      }
    }
    code.pop();
    code.iconst(true);
    Source toend = code.go_to();
    isfalse.bind();
    code.pop();
    code.iconst(false);
    toend.bind();
    if (operation != GET_BOOLEAN) {
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.