Examples of ifZCmp()


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

    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;
    mg.loadThis();
View Full Code Here

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

      Label doFalse = new Label();
      Label end = new Label();

      if(operation==AND) {
        left.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFEQ, doFalse);
         
          right.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFEQ, doFalse);
          adapter.push(true);
         
View Full Code Here

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

      if(operation==AND) {
        left.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFEQ, doFalse);
         
          right.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFEQ, doFalse);
          adapter.push(true);
         
          adapter.visitJumpInsn(Opcodes.GOTO, end);
          adapter.visitLabel(doFalse);
View Full Code Here

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

          adapter.push(false);
          adapter.visitLabel(end);
      }
      if(operation==OR) {
        left.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFNE, doFalse);

          right.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFNE, doFalse);

          adapter.push(false);
View Full Code Here

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

      if(operation==OR) {
        left.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFNE, doFalse);

          right.writeOut(bc, MODE_VALUE);
          adapter.ifZCmp(Opcodes.IFNE, doFalse);

          adapter.push(false);
          adapter.visitJumpInsn(Opcodes.GOTO, end);
          adapter.visitLabel(doFalse);
View Full Code Here

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

       
        Label l1 = new Label();
        Label l2 = new Label();
       
        expr.writeOut(bc, MODE_VALUE);
        adapter.ifZCmp(Opcodes.IFEQ,l1);
       
        adapter.visitInsn(Opcodes.ICONST_0);
        adapter.visitJumpInsn(Opcodes.GOTO, l2);
        adapter.visitLabel(l1);
        adapter.visitInsn(Opcodes.ICONST_1);
View Full Code Here

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

   
   
  }
  public void visitEnd(BytecodeContext bc) {
    GeneratorAdapter adapter = bc.getAdapter();
      adapter.ifZCmp(Opcodes.IFEQ, end);
      adapter.push(true);
     
      adapter.visitJumpInsn(Opcodes.GOTO, l2);
      adapter.visitLabel(end);
View Full Code Here

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

  }
 
  public void visitEndAfterCondition(BytecodeContext bc) {
    GeneratorAdapter adapter = bc.getAdapter();

    adapter.ifZCmp(Opcodes.IFNE, l3);
   
    adapter.visitLabel(lend);

    adapter.visitLocalVariable("i", "I", null, l1, lend, i);
View Full Code Here

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

  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    adapter.visitLabel(begin);
   
    expr.writeOut(bc, Expression.MODE_VALUE);
    adapter.ifZCmp(Opcodes.IFEQ, end);
   
    body.writeOut(bc);
    adapter.visitJumpInsn(Opcodes.GOTO, begin);
   
    adapter.visitLabel(end);
View Full Code Here

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

    // instance of Abort
      Label abortEnd=new Label();
      adapter.loadLocal(lThrow);
      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
          adapter.loadLocal(lThrow);
          adapter.throwException();
          adapter.visitLabel(abortEnd);

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.