aboutsummaryrefslogtreecommitdiff
path: root/test/compress/switch.js
AgeCommit message (Expand)Author
2018-07-01fix corner case in `unused`alexlamsl
2017-12-01improve switch case compression (#2547)Alex Lam S.L
2017-12-01improve `AST_For.init` & `AST_Switch.expression` compression (#2546)Alex Lam S.L
2017-11-11implement compress option `reduce_funcs` (#2466)...- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464Alex Lam S.L
2017-04-02fix corner cases in switch and undefined (#1762)...- fix side effects in switch condition for singular blocks - fix `undefined` confusion with local variable - gate `OPT(AST_Switch)` with `switches` fixes #1758 fixes #1759Alex Lam S.L
2017-03-29improve beautified output of switch blocks (#1721)Alex Lam S.L
2017-03-28fix tail trimming of switch blocks (#1707)...now guarded under `dead_code` fixes #1705Alex Lam S.L
2017-03-27`has_side_effects()` should take `AST_Switch.expression` into account (#1699)...fixes #1698Alex Lam S.L
2017-03-27fix typeof side effects (#1696)...`statement_to_expression()` drops `typeof` even if it operates on undeclared variables. Since we now have `drop_side_effect_free()`, replace and remove this deprecated functionality.Alex Lam S.L
2017-03-27preserve side effects in switch expression (#1694)...fixes #1690Alex Lam S.L
2017-03-26fallthrough should not execute case expression (#1683)...- de-duplicate trailing cases only, avoid all potential side-effects - enable switch statement fuzzing fixes #1680Alex Lam S.L
2017-03-26suppress switch branch de-duplication upon side effects (#1682)...fixes #1679Alex Lam S.L
2017-03-26improve switch optimisations (#1677)...- correctly determine reachability of (default) branches - gracefully handle multiple default branches - optimise branches with duplicate bodies fixes #376 fixes #441 fixes #1674Alex Lam S.L
2017-03-25fix `dead_code` on `AST_Switch` (#1667)...Need to call `extract_declarations_from_unreachable_code()`. fixes #1663Alex Lam S.L
2013-03-01Drop last `default:` if it's the last branch and empty...Close #141 Mihai Bazon
2012-11-14better solution for the last test in constant switch foldingMihai Bazon
2012-11-14optimize constant switch blocks...ref. mishoo/UglifyJS#441 Mihai Bazon