aboutsummaryrefslogtreecommitdiff
path: root/test/compress/switch.js
AgeCommit message (Collapse)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)Alex Lam S.L
- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464
2017-04-02fix corner cases in switch and undefined (#1762)Alex Lam S.L
- fix side effects in switch condition for singular blocks - fix `undefined` confusion with local variable - gate `OPT(AST_Switch)` with `switches` fixes #1758 fixes #1759
2017-03-29improve beautified output of switch blocks (#1721)Alex Lam S.L
2017-03-28fix tail trimming of switch blocks (#1707)Alex Lam S.L
now guarded under `dead_code` fixes #1705
2017-03-27`has_side_effects()` should take `AST_Switch.expression` into account (#1699)Alex Lam S.L
fixes #1698
2017-03-27fix typeof side effects (#1696)Alex Lam S.L
`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.
2017-03-27preserve side effects in switch expression (#1694)Alex Lam S.L
fixes #1690
2017-03-26fallthrough should not execute case expression (#1683)Alex Lam S.L
- de-duplicate trailing cases only, avoid all potential side-effects - enable switch statement fuzzing fixes #1680
2017-03-26suppress switch branch de-duplication upon side effects (#1682)Alex Lam S.L
fixes #1679
2017-03-26improve switch optimisations (#1677)Alex Lam S.L
- correctly determine reachability of (default) branches - gracefully handle multiple default branches - optimise branches with duplicate bodies fixes #376 fixes #441 fixes #1674
2017-03-25fix `dead_code` on `AST_Switch` (#1667)Alex Lam S.L
Need to call `extract_declarations_from_unreachable_code()`. fixes #1663
2013-03-01Drop last `default:` if it's the last branch and emptyMihai Bazon
Close #141
2012-11-14better solution for the last test in constant switch foldingMihai Bazon
2012-11-14optimize constant switch blocksMihai Bazon
ref. mishoo/UglifyJS#441