Package org.renjin.compiler.ir.tac.statements

Examples of org.renjin.compiler.ir.tac.statements.ExprStatement


   
    // assignment itself has no side effects,
    // evaluate only the rhs for its side effects
   
    builder.addStatement(
        new ExprStatement(builder.translateExpression(context, call.getArgument(2))));
   
  }
View Full Code Here


  public void addStatement(IRBodyBuilder builder, TranslationContext context,
      FunctionCall call) {
   
    // TODO: does x$a ever have any side effects? Maybe forces a promise?
    // if not, we can do a NO OP here.
    builder.addStatement(new ExprStatement(translateToExpression(builder, context, call)));
   
  }
View Full Code Here

    SimpleExpression condition1 = builder.translateSimpleExpression(context, call.getArgument(0));
    builder.addStatement(new IfStatement(condition1, test2Label, finishLabel, test2Label));
   
    // first condition is ok, check the second
    builder.addLabel(test2Label);
    builder.addStatement(new ExprStatement(builder.translateExpression(context, call.getArgument(1))));
   
    builder.addLabel(finishLabel);
  
  }
View Full Code Here

    SimpleExpression condition1 = builder.translateSimpleExpression(context, call.getArgument(0));
    builder.addStatement(new IfStatement(condition1, finishLabel, test2Label, test2Label));
   
    // first condition is ok, check the second
    builder.addLabel(test2Label);
    builder.addStatement(new ExprStatement(builder.translateExpression(context, call.getArgument(1))));
   
    builder.addLabel(finishLabel);
  
  }
View Full Code Here

  @Override
  public void addStatement(IRBodyBuilder builder, TranslationContext context,
      FunctionCall call) {
    builder.addStatement(
        new ExprStatement(translateToExpression(builder, context, call)));
  }
View Full Code Here

TOP

Related Classes of org.renjin.compiler.ir.tac.statements.ExprStatement

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.