Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter.loadArg()


      cv.visitOtherviseAfterBody();
    cv.visitAfter(bc);
    adapter.storeLocal(localBC);
   
    // c.init(pc,this);
    adapter.loadArg(1);
    adapter.loadArg(0);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    adapter.invokeVirtual(Types.COMPONENT_IMPL, INIT);
     
     
View Full Code Here


    cv.visitAfter(bc);
    adapter.storeLocal(localBC);
   
    // c.init(pc,this);
    adapter.loadArg(1);
    adapter.loadArg(0);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    adapter.invokeVirtual(Types.COMPONENT_IMPL, INIT);
     
     
    //int oldCheckArgs=  pc.undefinedScope().setMode(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
View Full Code Here

        bc.getAdapter().invokeVirtual(Types.PAGE_CONTEXT,OUTPUT_END);
      }
    },null);

    //ExpressionUtil.visitLine(bc, line);
    adapter.loadArg(0);
    adapter.invokeVirtual(Types.PAGE_CONTEXT,OUTPUT_START);
    tfv.visitTryBegin(bc);


  }
View Full Code Here

    adapter.invokeVirtual(Types.COMPONENT_IMPL, INIT);
     
     
    //int oldCheckArgs=  pc.undefinedScope().setMode(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
      final int oldCheckArgs = adapter.newLocal(Types.INT_VALUE);
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.PAGE_CONTEXT, UNDEFINED_SCOPE);
      adapter.push(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
      adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
      adapter.storeLocal(oldCheckArgs);
   
View Full Code Here

    TryCatchFinallyVisitor tcf=new TryCatchFinallyVisitor(new OnFinally() {
     
      public void writeOut(BytecodeContext bc) {

        // undefined.setMode(oldMode);
        adapter.loadArg(0);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, UNDEFINED_SCOPE);
        adapter.loadLocal(oldCheckArgs,Types.INT_VALUE);
        adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
        adapter.pop();
       
View Full Code Here

        adapter.loadLocal(oldCheckArgs,Types.INT_VALUE);
        adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
        adapter.pop();
       
          // c.afterCall(pc,_oldData);
          adapter.loadArg(1);
          adapter.loadArg(0);
          adapter.loadLocal(oldData);
          adapter.invokeVirtual(Types.COMPONENT_IMPL, AFTER_CALL);
       
       
View Full Code Here

        adapter.invokeInterface(Types.UNDEFINED, SET_MODE);
        adapter.pop();
       
          // c.afterCall(pc,_oldData);
          adapter.loadArg(1);
          adapter.loadArg(0);
          adapter.loadLocal(oldData);
          adapter.invokeVirtual(Types.COMPONENT_IMPL, AFTER_CALL);
       
       
      }
View Full Code Here

       
      }
    },null);
    tcf.visitTryBegin(bc);
      // oldData=c.beforeCall(pc);
      adapter.loadArg(1);
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.COMPONENT_IMPL, BEFORE_CALL);
      adapter.storeLocal(oldData);
      ExpressionUtil.visitLine(bc, component.getStart());
      writeOutCallBody(bc,component.getBody(),IFunction.PAGE_TYPE_COMPONENT);
View Full Code Here

      }
    },null);
    tcf.visitTryBegin(bc);
      // oldData=c.beforeCall(pc);
      adapter.loadArg(1);
      adapter.loadArg(0);
      adapter.invokeVirtual(Types.COMPONENT_IMPL, BEFORE_CALL);
      adapter.storeLocal(oldData);
      ExpressionUtil.visitLine(bc, component.getStart());
      writeOutCallBody(bc,component.getBody(),IFunction.PAGE_TYPE_COMPONENT);
      ExpressionUtil.visitLine(bc, component.getEnd());
View Full Code Here

      ExpressionUtil.visitLine(bc, component.getStart());
      writeOutCallBody(bc,component.getBody(),IFunction.PAGE_TYPE_COMPONENT);
      ExpressionUtil.visitLine(bc, component.getEnd());
    int t = tcf.visitTryEndCatchBeging(bc);
      // BodyContentUtil.flushAndPop(pc,bc);
      adapter.loadArg(0);
      adapter.loadLocal(localBC);
      adapter.invokeStatic(Types.BODY_CONTENT_UTIL, FLUSH_AND_POP);
   
      // throw Caster.toPageException(t);
      adapter.loadLocal(t);
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.