aboutsummaryrefslogtreecommitdiff
path: root/test/compress/conditionals.js
AgeCommit message (Expand)Author
2013-12-29Conditional/call optimization... foo ? bar(x) : bar(y) ==> bar(foo ? x : y) Mihai Bazon
2012-10-03added option for side-effect-free statements, fix testMihai Bazon
2012-10-03disable `hoist_vars` by default and change `comparations` to `comparisons`Mihai Bazon
2012-09-17minorMihai Bazon
2012-09-16rewrite handle_if_return...optimizations of if/return/continue seem to be even better now Mihai Bazon
2012-09-13few more optimizations:...- do multiple passes in tighten_body if it was changed - transform if (foo) return x; return y; ==> return foo?x:y - don't optimize !0 as true (use best_of after evaluation of constant expr) With hoist_vars off we now beat UglifyJS v1 on jQuery-1.8.1 Mihai Bazon
2012-09-12minorMihai Bazon
2012-09-10more progress on the compressor (WIP)Mihai Bazon
2012-09-07always keep declarations found in unreachable code...a few more tests and some cleanups. Mihai Bazon