void ExprCompiler::visit(OrExpr& expr, int dest) { compile(expr.left(), dest); // Leave a space for the test and jump instruction. int jumpToEnd = startJump(expr); compile(expr.right(), dest); endJump(jumpToEnd, OP_JUMP_IF_TRUE, dest); }
void Resolver::visit(OrExpr& expr, int dummy) { resolve(expr.left()); resolve(expr.right()); }