Examples of aload_first()


Examples of anvil.codec.Code.aload_first()

    ConstantPool pool = code.getPool();
    if (_class instanceof NativeJava) {
      if (hasSplices()) {
        code.getstatic(pool.addFieldRef(_class.getTypeRef(pool),
          "__class__", "Lanvil/script/compiler/NativeClass;"));
        code.aload_first();
        context.compileArgumentList(getChilds(0));
        code.invokevirtual(pool.addMethodRef(
          "anvil/script/compiler/NativeClass", "newInstance",
          "(Lanvil/script/Context;[Lanvil/core/Any;)Lanvil/core/Any;"));
         
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    } else {
      int classindex = _class.getTypeRef(pool);
      boolean has_splices = hasSplices();
      if (has_splices) {
        code.getstatic(pool.addFieldRef(classindex, "m_"+_constructor.getName(), "Lanvil/script/Function;"));
        code.aload_first();
      }
      code.anew(classindex);
      code.dup();
      ClassType[] clazz_parents = _class.getEnclosingClasses();
      int n = clazz_parents.length;
View Full Code Here

Examples of anvil.codec.Code.aload_first()


  public void compile(ByteCompiler context, int operation)
  {
    Code code = context.getCode();
    code.aload_first();
    super.compile(context, GET);
    code.invokestatic(code.getPool().addMethodRef(context.TYPE_CONTEXT,
      "nomatch", "(Lanvil/script/Context;Lanvil/core/Any;Lanvil/core/Any;)Z"));
    if (operation != GET_BOOLEAN) {
      context.boolean2any();
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    ConstantPool pool = code.getPool();
    if (_function instanceof NativeJava) {
      if (hasSplices()) {
        code.getstatic(pool.addFieldRef(_function.getParent().getTypeRef(pool),
          "__module__", "Lanvil/script/compiler/NativeNamespace;"));
        code.aload_first();
        code.astring(_function.getName())
        context.compileArgumentList(getChilds(0));
        code.invokevirtual(pool.addMethodRef(
          "anvil/script/compiler/NativeNamespace", "execute",
          "(Lanvil/script/Context;Ljava/lang/String;[Lanvil/core/Any;)Lanvil/core/Any;"));
View Full Code Here

Examples of anvil.codec.Code.aload_first()

     
    } else {
      if (hasSplices()) {
        code.getstatic(pool.addFieldRef(context.TYPE_MODULE,
          "f_"+_function.getName(), "Lanvil/script/Function;"));
        code.aload_first();
        context.compileArgumentList(getChilds(0));
        code.invokeinterface(pool.addInterfaceMethodRef(
          context.TYPE_FUNCTION, "execute",
          "(Lanvil/script/Context;[Lanvil/core/Any;)Lanvil/core/Any;"));
         
View Full Code Here

Examples of anvil.codec.Code.aload_first()

      }
      code.dup();

      int contextframe = pool.addMethodRef(context.TYPE_CONTEXT, "frame",
        "()Lanvil/script/StackFrame;");
      code.aload_first();
      code.invokevirtual(contextframe);
      code.swap();
      code.invokevirtual(pool.addMethodRef("anvil/script/StackFrame",
        "push", "(Lanvil/core/Any;)V"));
View Full Code Here

Examples of anvil.codec.Code.aload_first()

      // finally
      handler.startFinally();
      int returnto = code.addLocal();
      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) {
View Full Code Here

Examples of anvil.codec.Code.aload_first()

    code.getstatic(javafield);
    Source isnull = code.if_null();
    code.getstatic(javafield);
    Source notnull = code.go_to();
    isnull.bind();
    code.aload_first();
    code.astring(classname);
    code.invokevirtual(pool.addMethodRef(contextclass, "reflect", "(Ljava/lang/String;)Lanvil/core/reflect/Reflection;"));
    code.dup();
    code.putstatic(javafield);
    notnull.bind();
View Full Code Here

Examples of anvil.codec.Code.aload_first()

  {
    if (_debug && location != null) {
      Code code = getCode();
      Method method = code.getMethod();
      if (method.getClassRoom().getStatic() != method) {
        code.aload_first();
        code.iconst(location.getLine());
        code.invokevirtual(getPool().addMethodRef("anvil/script/StackFrameStack",
          "setLine", "(I)V"));
      }
    }
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();
      code.invokevirtual(pool.addMethodRef(context.TYPE_CONTEXT, "frame",
        "()Lanvil/script/StackFrame;"));
      code.invokevirtual(pool.addMethodRef("anvil/script/StackFrame", "peek",
        "()Lanvil/core/Any;"));
    }
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.