Examples of aload_first()


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, "preinc",
          "(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, "preinc",
          "(Lanvil/core/Any;Lanvil/core/Any;Lanvil/script/Context;)Lanvil/core/Any;"));
      }
      break;
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, "predec",
          "(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, "predec",
          "(Lanvil/core/Any;Lanvil/core/Any;Lanvil/script/Context;)Lanvil/core/Any;"));
      }
      break;
View Full Code Here

Examples of anvil.codec.Code.aload_first()

      switch(_type.getType()) {
      case Type.FUNCTION:
        {
          code.getstatic(pool.addFieldRef(_type.getParent().getTypeRef(pool),
            "__module__", "Lanvil/script/compiler/NativeNamespace;"));
          code.aload_first();
          code.astring(_type.getName())
          int method;
          if (get_type) {
            method = pool.addMethodRef("anvil/script/compiler/NativeNamespace",
              "getDeclaration", "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/script/Type;");
View Full Code Here

Examples of anvil.codec.Code.aload_first()

      case Type.METHOD:
        {
          code.getstatic(pool.addFieldRef(_type.getParent().getTypeRef(pool),
            "__class__", "Lanvil/script/compiler/NativeClass;"));
          int method;
          code.aload_first();
          code.astring(_type.getName())
          if (get_type) {
            method = pool.addMethodRef("anvil/script/compiler/NativeClass",
              "getDeclaration", "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/script/Type;");
          } else {
View Full Code Here

Examples of anvil.codec.Code.aload_first()

        {
          Type parent = _type.getParent();
          int field = pool.addFieldRef(parent.getTypeRef(pool), "_class",
            "Lanvil/script/compiler/CompiledClassType;");
          code.getstatic(field);
          code.aload_first();
          code.astring(_type.getName());
          code.invokevirtual(pool.addMethodRef(
            "anvil/script/compiler/CompiledClassType",
            get_type ?
              "getMember" :
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  public void compile(ByteCompiler context, Node child)
  {
    Code code = context.getCode();
    _child.compile(context, GET);
    code.aload_first();
    child.compile(context, GET);
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_ANY,
      "setReference", "(Lanvil/script/Context;Lanvil/core/Any;)Lanvil/core/Any;"));
  }
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  {
    Code code = context.getCode();
    switch(operation) {
    case GET:
      _child.compile(context, GET);
      code.aload_first();
      code.astring(_attribute);
      code.invokevirtual(code.getPool().addMethodRef(context.TYPE_ANY, "getAttribute",
        "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/core/Any;"));
      break;
View Full Code Here

Examples of anvil.codec.Code.aload_first()

        "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/core/Any;"));
      break;

    case GET_BOOLEAN:
      _child.compile(context, GET);
      code.aload_first();
      code.astring(_attribute);
      code.invokevirtual(code.getPool().addMethodRef(context.TYPE_ANY, "getAttribute",
        "(Lanvil/script/Context;Ljava/lang/String;)Lanvil/core/Any;"));
      context.any2boolean();
      break;
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.