Age | Commit message (Expand) | Author |
---|---|---|
2018-07-01 | fix corner case in `unused` | alexlamsl |
2017-12-01 | improve switch case compression (#2547) | Alex Lam S.L |
2017-12-01 | improve `AST_For.init` & `AST_Switch.expression` compression (#2546) | Alex Lam S.L |
2017-11-11 | implement 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 #2464 | Alex Lam S.L |
2017-04-02 | fix 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 #1759 | Alex Lam S.L |
2017-03-29 | improve beautified output of switch blocks (#1721) | Alex Lam S.L |
2017-03-28 | fix tail trimming of switch blocks (#1707)...now guarded under `dead_code` fixes #1705 | Alex Lam S.L |
2017-03-27 | `has_side_effects()` should take `AST_Switch.expression` into account (#1699)...fixes #1698 | Alex Lam S.L |
2017-03-27 | fix 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-27 | preserve side effects in switch expression (#1694)...fixes #1690 | Alex Lam S.L |
2017-03-26 | fallthrough should not execute case expression (#1683)...- de-duplicate trailing cases only, avoid all potential side-effects - enable switch statement fuzzing fixes #1680 | Alex Lam S.L |
2017-03-26 | suppress switch branch de-duplication upon side effects (#1682)...fixes #1679 | Alex Lam S.L |
2017-03-26 | improve switch optimisations (#1677)...- correctly determine reachability of (default) branches - gracefully handle multiple default branches - optimise branches with duplicate bodies fixes #376 fixes #441 fixes #1674 | Alex Lam S.L |
2017-03-25 | fix `dead_code` on `AST_Switch` (#1667)...Need to call `extract_declarations_from_unreachable_code()`. fixes #1663 | Alex Lam S.L |
2013-03-01 | Drop last `default:` if it's the last branch and empty...Close #141 | Mihai Bazon |
2012-11-14 | better solution for the last test in constant switch folding | Mihai Bazon |
2012-11-14 | optimize constant switch blocks...ref. mishoo/UglifyJS#441 | Mihai Bazon |