Examples of storeLocal()


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

    final CallFrame inputCall = sub.model().getCallChainToCall();
    final Class inputContainerClass = inputCall.getMethod().getReturnType();
    final Type inputContainerType = Type.getType( inputContainerClass );
    final int l_ds = mv.newLocal( inputContainerType );
    compileInputGetterCall( inputCall );
    mv.storeLocal( l_ds );

    // ~ if (ds != null) {
    final Label isNull = mv.newLabel();
    mv.loadLocal( l_ds );
    mv.ifNull( isNull );
View Full Code Here

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

    else if (Iterable.class.isAssignableFrom( inputContainerClass )) {
      final int l_it = mv.newLocal( ITERATOR_INTF );
      mv.loadLocal( l_ds );
      mv.visitMethodInsn( Opcodes.INVOKEINTERFACE, ITERABLE_INTF.getInternalName(), "iterator", "()"
          + ITERATOR_INTF.getDescriptor() );
      mv.storeLocal( l_it );
      l_di = compileInitFromIterator( sub, mv, l_it );
    }
    else if (Iterator.class.isAssignableFrom( inputContainerClass )) {
      l_di = compileInitFromIterator( sub, mv, l_ds );
    }
View Full Code Here

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

    mg.invokeVirtual(Type.getType(Field.class), method);
    mg.mark(endTry);
    mg.returnValue();
    mg.mark(catchHandle);
    int exception = mg.newLocal(Type.getType(IllegalAccessException.class));
    mg.storeLocal(exception);
    mg.loadLocal(exception);
    mg.invokeStatic(Type.getType(Throwables.class),
                    getMethod(RuntimeException.class, "propagate", Throwable.class));
    mg.throwException();
    mg.endMethod();
View Full Code Here

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

    ga.visitLabel(endTry);
    l5 = new Label();
    ga.visitJumpInsn(GOTO, l5);
    ga.visitLabel(endTry2);
    int lThrow = ga.newLocal(type);
    ga.storeLocal(lThrow);
    //mv.visitVarInsn(ASTORE, 1);
    l6 = new Label();
    ga.visitLabel(l6);
    return lThrow;
  }
View Full Code Here

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

    bc.popOnFinally();
    ga.visitLabel(l3);
    ga.visitJumpInsn(GOTO, l5);
    ga.visitLabel(l4);
    int lThrow = ga.newLocal(Types.THROWABLE);
    ga.storeLocal(lThrow);
    //mv.visitVarInsn(ASTORE, 2);
    Label l8 = new Label();
    ga.visitLabel(l8);

    onFinally.writeOut(bc);
View Full Code Here

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

      int l = ga.newLocal(Types.OBJECT);
      ExpressionUtil.visitLine(bc, left.getStart());
      left.writeOut(bc, MODE_REF);
      ExpressionUtil.visitLine(bc, left.getEnd());
      ga.dup();
      ga.storeLocal(l);
     
      ga.visitJumpInsn(Opcodes.IFNONNULL, notNull);
      ExpressionUtil.visitLine(bc, right.getStart());
      right.writeOut(bc, MODE_REF);
      ExpressionUtil.visitLine(bc, right.getEnd());
View Full Code Here

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

    bc.popOnFinally();
    ga.visitJumpInsn(GOTO, beforeFinally);
   
    ga.visitLabel(afterTry);
    lThrow = ga.newLocal(Types.THROWABLE);
    ga.storeLocal(lThrow);
   
    onFinally.writeOut(bc);
   
    ga.loadLocal(lThrow);
    ga.visitInsn(ATHROW);
View Full Code Here

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

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

      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

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

      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
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.