Bug 1028580 - Improve code generated for conditional and &&/|| tests, r=jandem,sunfish.