Searched refs:leftVal (Results 1 – 3 of 3) sorted by relevance
50 bool leftVal = left.as<Literal>().boolValue(); in short_circuit_boolean() local53 if ((op.kind() == Token::Kind::TK_LOGICALAND && !leftVal) || // (false && expr) -> (false) in short_circuit_boolean()54 (op.kind() == Token::Kind::TK_LOGICALOR && leftVal)) { // (true || expr) -> (true) in short_circuit_boolean()358 bool leftVal = left->as<Literal>().boolValue(); in Simplify() local362 case Token::Kind::TK_LOGICALAND: result = leftVal && rightVal; break; in Simplify()363 case Token::Kind::TK_LOGICALOR: result = leftVal || rightVal; break; in Simplify()364 case Token::Kind::TK_LOGICALXOR: result = leftVal ^ rightVal; break; in Simplify()365 case Token::Kind::TK_EQEQ: result = leftVal == rightVal; break; in Simplify()366 case Token::Kind::TK_NEQ: result = leftVal != rightVal; break; in Simplify()427 SKSL_INT leftVal = left->as<Literal>().intValue(); in Simplify() local[all …]
1477 bool leftVal = ((BoolLiteral&) left).fValue; in short_circuit_boolean() local1480 return leftVal ? right.clone() in short_circuit_boolean()1484 return leftVal ? std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, true)) in short_circuit_boolean()1515 bool leftVal = ((BoolLiteral&) left).fValue; in constantFold() local1519 case Token::LOGICALAND: result = leftVal && rightVal; break; in constantFold()1520 case Token::LOGICALOR: result = leftVal || rightVal; break; in constantFold()1521 case Token::LOGICALXOR: result = leftVal ^ rightVal; break; in constantFold()1527 leftVal op rightVal)) in constantFold()1529 int64_t leftVal = ((IntLiteral&) left).fValue; in constantFold() local1575 double leftVal = ((FloatLiteral&) left).fValue; in constantFold() local
356 ExecConstValueAccess leftVal = m_leftValueExpr->getValue(); in evaluate() local360 evaluate(dst, leftVal, rightVal); in evaluate()