Package org.objectweb.asm.commons

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


      adapter.visitLabel(methodBegin);
       
    // Scope oldData=null;
    final int oldData=adapter.newLocal(Types.VARIABLES);
    ASMConstants.NULL(adapter);
    adapter.storeLocal(oldData);
   
    int localBC=adapter.newLocal(Types.BODY_CONTENT);
    ConditionVisitor cv=new ConditionVisitor();
    cv.visitBefore();
      cv.visitWhenBeforeExpr();
View Full Code Here


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

      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);
   
     
    TryCatchFinallyVisitor tcf=new TryCatchFinallyVisitor(new OnFinally() {
     
      public void writeOut(BytecodeContext bc) {
View Full Code Here

    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());
    int t = tcf.visitTryEndCatchBeging(bc);
      // BodyContentUtil.flushAndPop(pc,bc);
View Full Code Here

   
    if(expr==null)ASMConstants.NULL(adapter);
    else expr.writeOut(bc, Expression.MODE_REF);
    if(len>0) {
      int rtn = adapter.newLocal(Types.OBJECT);
      adapter.storeLocal(rtn, Types.OBJECT);
      for(int i=len-1;i>=0;i--) {
       
        onFinally=finallies.get(i);
        onFinally.writeOut(bc);
      }
View Full Code Here

    //adapter.visitVarInsn(Opcodes.ALOAD, 4);
    createMetaDataStruct(bc,component.getAttributes(),component.getMetaData());
   
    adapter.invokeConstructor(Types.COMPONENT_IMPL, CONSTR_COMPONENT_IMPL);
   
    adapter.storeLocal(comp);
   
    //Component Impl(ComponentPage componentPage,boolean output, String extend, String hint, String dspName)
   
   
    // initComponent(pc,c);
View Full Code Here

    int array=adapter.newLocal(Types.ARRAY);
    adapter.newInstance(ARRAY_IMPL);
    adapter.dup();
    adapter.invokeConstructor(ARRAY_IMPL, INIT);
   
    adapter.storeLocal(array);
   
  // cases.append(case.value);
    Iterator<Case> it = cases.iterator();
    Case c;
    while(it.hasNext()) {
View Full Code Here

    // 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)
    ns=new NativeSwitch(result,NativeSwitch.LOCAL_REF,getStart(),getEnd());
    it = cases.iterator();
    int count=1;
View Full Code Here

    createMetaDataStruct(bc,interf.getAttributes(),interf.getMetaData());
   
   
    adapter.invokeConstructor(Types.INTERFACE_IMPL, CONSTR_INTERFACE_IMPL);
   
    adapter.storeLocal(comp);
   
   
   
    // initInterface(pc,c);
    adapter.visitVarInsn(Opcodes.ALOAD, 0);
View Full Code Here

   
    int sct=adapter.newLocal(STRUCT_IMPL);
    adapter.newInstance(STRUCT_IMPL);
    adapter.dup();
    adapter.invokeConstructor(STRUCT_IMPL, INIT_STRUCT_IMPL);
    adapter.storeLocal(sct);
    if(meta!=null) {
      _createMetaDataStruct(bc,adapter,sct,meta);
    }
    if(attrs!=null) {
      _createMetaDataStruct(bc,adapter,sct,attrs);
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.