Search in sources :

Example 1 with If2FunExpr

use of suite.jdk.gen.FunExprM.If2FunExpr in project suite by stupidsing.

the class FunFactory method ifEquals.

public FunExpr ifEquals(FunExpr left, FunExpr right, FunExpr then_, FunExpr else_) {
    If2FunExpr expr = new If2FunExpr();
    expr.opcode = t -> !Objects.equals(t, Type.INT) ? Const.IF_ACMPNE : Const.IF_ICMPNE;
    expr.left = left;
    expr.right = right;
    expr.then = then_;
    expr.else_ = else_;
    return expr;
}
Also used : If2FunExpr(suite.jdk.gen.FunExprM.If2FunExpr)

Aggregations

If2FunExpr (suite.jdk.gen.FunExprM.If2FunExpr)1