Examples of aload_first()


Examples of anvil.codec.Code.aload_first()

 

  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    code.aload_first();
    _child.compile(context, GET);
    code.invokevirtual(code.getPool().addMethodRef("java/lang/Object",
      "toString", "()Ljava/lang/String;"));
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_CONTEXT,
      "dynamicImport", "(Ljava/lang/String;)Lanvil/core/Any;"));
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
   
    code.aload_first();
    _left.compile(context, GET);
    _right.compile(context, GET);
    code.invokevirtual(pool.addMethodRef(context.TYPE_CONTEXT, "foreach",
      "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
View Full Code Here

Examples of anvil.codec.Code.aload_first()

        "anvil/script/compiler/CompiledModule", "getAssert", "()Z"));
      Source source = code.if_eq();
      _condition.compile(context, Expression.GET_BOOLEAN);
      code.if_ne(source);
      context.location(getLocation());
      code.aload_first();
      code.astring(_image);
      code.invokevirtual(pool.addMethodRef("anvil/script/Context", "AssertFailed",
        "(Ljava/lang/String;)Lanvil/script/ScriptException;"));
      code.athrow();
      source.bind();
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    context.accessInstance(_context, _target);
    code.aload_first();
    context.symbol(_method.getName());
    int n = childs();
    if (!hasSplices() && n <= 4) {
      for(int i=0; i<n; i++) {
        getChild(i).compile(context, GET);
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    case Node.EXPR_ATTRIBUTE:
      {
        AttributeNode attr = (AttributeNode)child;
        attr.getChild().compile(context, GET);
        code.astring(attr.getAttribute());
        code.aload_first();
        code.invokestatic(pool.addMethodRef(context.TYPE_CONTEXT, "postinc",
          "(Lanvil/core/Any;Ljava/lang/String;Lanvil/script/Context;)Lanvil/core/Any;"));
      }
      break;
   
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    case Node.EXPR_REFERENCE:
      {
        ReferenceNode ref = (ReferenceNode)child;
        ref.getLeft().compile(context, GET);
        ref.getRight().compile(context, GET);
        code.aload_first();
        code.invokestatic(pool.addMethodRef(context.TYPE_CONTEXT, "postinc",
          "(Lanvil/core/Any;Lanvil/core/Any;Lanvil/script/Context;)Lanvil/core/Any;"));
      }
      break;
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  public void compile(ByteCompiler context, int operation)
  {
    getChild(0).compile(context, GET);
    Code code = context.getCode();
    code.aload_first();
    int n = childs() - 1;
    if (!hasSplices() && n <= 4) {
      for(int i=0; i<n; i++) {
        getChild(1 + i).compile(context, GET);
      }
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.