Package org.objectweb.asm.commons

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


      staticAdapter.mark(endPopulate);
      staticAdapter.goTo(afterCatch);

      staticAdapter.mark(catchHandler);
      // We don't care about the exception, so pop it off
      staticAdapter.pop();
      // store the reflected method in the static field
      staticAdapter.visitInsn(ACONST_NULL);
      staticAdapter.putStatic(typeBeingWoven, methodStaticFieldName,
          METHOD_TYPE);
      staticAdapter.mark(afterCatch);
View Full Code Here


      staticAdapter.mark(endPopulate);
      staticAdapter.goTo(afterCatch);

      staticAdapter.mark(catchHandler);
      // We don't care about the exception, so pop it off
      staticAdapter.pop();
      // store the reflected method in the static field
      staticAdapter.visitInsn(ACONST_NULL);
      staticAdapter.putStatic(typeBeingWoven, methodStaticFieldName,
          METHOD_TYPE);
      staticAdapter.mark(afterCatch);
View Full Code Here

      mv.loadLocal( l_lst );
      mv.loadLocal( l_arr );
      mv.loadLocal( l_i );
      mv.arrayLoad( sub.classType() );
      mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, ARRAYLIST_CLASS.getInternalName(), "add", "(Ljava/lang/Object;)Z" );
      mv.pop();

      // } // for
      mv.iinc( l_i, 1 );
      mv.mark( test );
      mv.loadLocal( l_i );
View Full Code Here

    final Label alreadyInitialized = new Label();
    gen.ifNonNull(alreadyInitialized);

    // Stack[0]: [[Z

    gen.pop();
    final int size = genInitializeDataField(gen);

    // Stack[0]: [[Z

    // Return the method's block array:
View Full Code Here

    final Label alreadyInitialized = new Label();
    gen.ifNonNull(alreadyInitialized);

    // Stack[0]: [Z

    gen.pop();
    final int size = genInitializeDataField(gen);

    // Stack[0]: [Z

    // Return the method's block array:
View Full Code Here

        // 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();
       
          // c.afterCall(pc,_oldData);
          adapter.loadArg(1);
          adapter.loadArg(0);
          adapter.loadLocal(oldData);
View Full Code Here

        onFinally.writeOut(bc);
      }
      adapter.loadLocal(rtn, Types.OBJECT);
    }
    if(bc.getMethod().getReturnType().equals(Types.VOID)) {
      adapter.pop();
      adapter.visitInsn(Opcodes.RETURN);
    }
    else adapter.visitInsn(Opcodes.ARETURN);
  }
 
View Full Code Here

                         adapter.invokeStatic(JAVA_PROXY, TO_LONG);
         }
         else if(classRtn==short.class) adapter.invokeStatic(JAVA_PROXY, TO_SHORT);
         else if(classRtn==void.class){
                         rtn=Opcodes.RETURN;
                         adapter.pop();
         }
         else {
                    rtn=Opcodes.ARETURN;
                    adapter.checkCast(typeRtn);
         }
View Full Code Here

     

      adapter.loadLocal(array);
      c.expression.writeOut(bc, Expression.MODE_REF);
      adapter.invokeVirtual(ARRAY_IMPL, APPEND);
      adapter.pop();
    }
   
    // int result=ArrayUtil.find(array,expression);
    int result=adapter.newLocal(Types.INT_VALUE);
    adapter.loadLocal(array);
View Full Code Here

    adapter.loadLocal(lRef);
    adapter.ifNull(removeEnd);
      adapter.loadLocal(lRef);
      adapter.loadArg(0);
      adapter.invokeInterface(Types.REFERENCE, REMOVE_EL);
      adapter.pop();
    adapter.visitLabel(removeEnd);
   
    if(finallyBody!=null)finallyBody.writeOut(bc); // finally
    /*if(fcf!=null){
      Label l = fcf.getAfterFinalGOTOLabel();
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.