Package org.allspice.bytecode.instructions

Examples of org.allspice.bytecode.instructions.Negate


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


    l.add(new Nop(end)) ;
  }

  public static void createNegate(EvaluationContext context, Expr e, InstList l) throws CompilerException {
    context.compile(null,e, l) ;
    l.add(new Negate(context.getTypeCode(e))) ;
  }
View Full Code Here

TOP

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

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.