Package org.allspice.bytecode.instructions

Examples of org.allspice.bytecode.instructions.Subtract


    Var y = new Var(i2,new TypeName(type)) ;
    MethodDef md = new MethodDef(new TypeName(ret),"meth",x,y) ;
    md = md.addInstructions(
        new Load(x),
        new Load(y),
        new Subtract(TypeCode.getType(type)),
        new Return(TypeCode.getType(ret))
        ) ;
    return cd.addMethod(md)
  }
View Full Code Here


      md = md.setStatic(true) ;
      md = md.addInstructions(
          new Load(x),
          new Load(y),
          new Swap(),
          new Subtract(TypeCode.INT),
          new Return(TypeCode.INT)
          ) ;
      cd = cd.addMethod(md) ;
    }
    return cd ;
View Full Code Here

  }
  private static final class SubtractInPlaceConverter extends
  InBinopPlaceOp<SubtractInPlaceExpr> {
    @Override
    public Inst createOp(StubResolver tc) {
      return new Subtract(tc.getTypeCode()) ;
    }
View Full Code Here

    }
  }
  private static final class SubConverter extends ArithOp<SubExpr> {
    @Override
    public Inst createOp(TypeCode tc) {
      return new Subtract(tc) ;
    }
View Full Code Here

TOP

Related Classes of org.allspice.bytecode.instructions.Subtract

Copyright © 2018 www.massapicom. 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.