Examples of newLabel()


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

    }
    else {
      final GeneratorAdapter mv = mv();
      final int iFoldedElt = _iElt + _foldedCol;
      final ExpressionNode foldedElt = _elts.get( iFoldedElt );
      final Label noMatch = mv.newLabel();
      compileCallToMatcherAndBuildItInFirstPass( _elts, _iElt );
      compileSkipFoldIfNoMatch( noMatch );
      compileElementFold( foldedElt );
      mv.mark( noMatch );
      return _iElt + this.tableDescriptor.numberOfColumns();
View Full Code Here

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

     *   // Call method
     * } catch (IllegalAccessException e) {
     *   throw Throwables.propagate(e);
     * }
     */
    Label beginTry = mg.newLabel();
    Label endTry = mg.newLabel();
    Label catchHandle = mg.newLabel();
    mg.visitTryCatchBlock(beginTry, endTry, catchHandle, Type.getInternalName(IllegalAccessException.class));
    mg.mark(beginTry);
    mg.loadThis();
View Full Code Here

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

     * } catch (IllegalAccessException e) {
     *   throw Throwables.propagate(e);
     * }
     */
    Label beginTry = mg.newLabel();
    Label endTry = mg.newLabel();
    Label catchHandle = mg.newLabel();
    mg.visitTryCatchBlock(beginTry, endTry, catchHandle, Type.getInternalName(IllegalAccessException.class));
    mg.mark(beginTry);
    mg.loadThis();
    mg.getField(Type.getObjectType(className), "field", Type.getType(Field.class));
View Full Code Here

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

     *   throw Throwables.propagate(e);
     * }
     */
    Label beginTry = mg.newLabel();
    Label endTry = mg.newLabel();
    Label catchHandle = mg.newLabel();
    mg.visitTryCatchBlock(beginTry, endTry, catchHandle, Type.getInternalName(IllegalAccessException.class));
    mg.mark(beginTry);
    mg.loadThis();
    mg.getField(Type.getObjectType(className), "field", Type.getType(Field.class));
    mg.loadArgs();
View Full Code Here

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

    mg.getStatic(classType, "SCHEMA_HASH", Type.getType(String.class));
    mg.loadArg(0);
    mg.invokeVirtual(Type.getType(Schema.class), getMethod(SchemaHash.class, "getSchemaHash"));
    mg.invokeVirtual(Type.getType(SchemaHash.class), getMethod(String.class, "toString"));
    mg.invokeVirtual(Type.getType(String.class), getMethod(boolean.class, "equals", Object.class));
    Label hashEquals = mg.newLabel();
    mg.ifZCmp(GeneratorAdapter.NE, hashEquals);
    mg.throwException(Type.getType(IllegalArgumentException.class), "Schema not match.");
    mg.mark(hashEquals);

    // this.schema = schema;
View Full Code Here

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

        // if the method is extending something, then we have
        // to test if the handler is initialized...

        if (md.isImplemented()) {
            ga.dup();
            Label ok = ga.newLabel();
            ga.ifNonNull(ok);

            ga.loadThis();
            ga.loadArgs();
            ga.invokeConstructor(superType, m);
View Full Code Here

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

      // for (int i = 0; i < len; i++) {
      final int l_i = mv.newLocal( Type.INT_TYPE );
      mv.push( 0 );
      mv.storeLocal( l_i );
      final Label test = mv.newLabel();
      mv.goTo( test );
      final Label again = mv.mark();

      // lst.add( arr[ i ] );
      mv.loadLocal( l_lst );
View Full Code Here

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

      @Override
      protected void compileBody() throws CompilerException
      {
        final GeneratorAdapter mv = this.mv();
        final ExpressionCompiler ec = expressionCompiler();
        final Label handled = mv.newLabel();

        final Label beginHandling = mv.mark();
        ec.compile( _node.argument( 0 ) );
        ec.compileExceptionalValueTest( _testForErrors );
        mv.goTo( handled );
View Full Code Here

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

  private final void compileIf( ExpressionNode _test, ExpressionNode _ifTrue, ExpressionNode _ifFalse )
      throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final Label notMet = mv.newLabel();
    final Label done = mv.newLabel();

    method().numericCompiler().compileTest( _test, notMet );

    final Set<DelayedLet> outerSetsInTrueBranch = compileTrackingSetsOfOuterLets( _ifTrue );
View Full Code Here

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

  private final void compileIf( ExpressionNode _test, ExpressionNode _ifTrue, ExpressionNode _ifFalse )
      throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final Label notMet = mv.newLabel();
    final Label done = mv.newLabel();

    method().numericCompiler().compileTest( _test, notMet );

    final Set<DelayedLet> outerSetsInTrueBranch = compileTrackingSetsOfOuterLets( _ifTrue );
    revertSetsOfOuterLets( outerSetsInTrueBranch, null );
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.