Package org.objectweb.asm.commons

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


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


      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);
      adapter.invokeStatic(Types.CASTER, TO_PAGE_EXCEPTION);
View Full Code Here

      adapter.loadArg(0);
      adapter.loadLocal(localBC);
      adapter.invokeStatic(Types.BODY_CONTENT_UTIL, FLUSH_AND_POP);
   
      // throw Caster.toPageException(t);
      adapter.loadLocal(t);
      adapter.invokeStatic(Types.CASTER, TO_PAGE_EXCEPTION);
      adapter.throwException();
    tcf.visitCatchEnd(bc);
   
    adapter.loadArg(0);
View Full Code Here

      adapter.invokeStatic(Types.CASTER, TO_PAGE_EXCEPTION);
      adapter.throwException();
    tcf.visitCatchEnd(bc);
   
    adapter.loadArg(0);
    adapter.loadLocal(localBC);
    adapter.invokeStatic(Types.BODY_CONTENT_UTIL, CLEAR_AND_POP);
 
      adapter.returnValue();
      adapter.visitLabel(methodEnd);
     
View Full Code Here

      for(int i=len-1;i>=0;i--) {
       
        onFinally=finallies.get(i);
        onFinally.writeOut(bc);
      }
      adapter.loadLocal(rtn, Types.OBJECT);
    }
    if(bc.getMethod().getReturnType().equals(Types.VOID)) {
      adapter.pop();
      adapter.visitInsn(Opcodes.RETURN);
    }
View Full Code Here

   
   
    // initComponent(pc,c);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
    adapter.loadArg(0);
    adapter.loadLocal(comp);
    adapter.invokeVirtual(Types.COMPONENT_PAGE, INIT_COMPONENT);
   
        adapter.visitLabel(methodEnd);
       
        // return component;
View Full Code Here

    adapter.invokeVirtual(Types.COMPONENT_PAGE, INIT_COMPONENT);
   
        adapter.visitLabel(methodEnd);
       
        // return component;
        adapter.loadLocal(comp);

        adapter.returnValue();
      //ExpressionUtil.visitLine(adapter, component.getEndLine());
        adapter.endMethod();
   
View Full Code Here

    Case c;
    while(it.hasNext()) {
      c=it.next();
     

      adapter.loadLocal(array);
      c.expression.writeOut(bc, Expression.MODE_REF);
      adapter.invokeVirtual(ARRAY_IMPL, APPEND);
      adapter.pop();
    }
   
View Full Code Here

      adapter.pop();
    }
   
    // int result=ArrayUtil.find(array,expression);
    int result=adapter.newLocal(Types.INT_VALUE);
    adapter.loadLocal(array);
    expr.writeOut(bc, Expression.MODE_REF);
    adapter.invokeStatic(Types.ARRAY_UTIL, FIND);
    adapter.storeLocal(result);
   
    // switch(result)
View Full Code Here

    if(var==null)
      throw new BytecodeException("there is no variable with name ["+operation+"] in the enviroment", getLine());
   
    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
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.