Package org.allspice.bytecode.instructions

Examples of org.allspice.bytecode.instructions.Add


      Var x = new Var(1,TypeName.INT) ; // index 1
      Var y = new Var(2,TypeName.INT) ; // index 2
      MethodDef md = new MethodDef(TypeName.INT,"add",x,y).addInstructions(
          new Load(x),
          new Load(y),
          new Add(TypeCode.INT),
          new Return(TypeCode.INT)
      ) ;
      // Watch it!  ClassDef is immutable
      cd = cd.addMethod(md) ;
    }
View Full Code Here


      return super.perform(t, context, o1, o2);
    }
   
    @Override
    public Inst createOp(TypeCode tc) {
      return new Add(tc) ;
    }
View Full Code Here

TOP

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

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.