Age | Commit message (Expand) | Author |
---|---|---|
2019-10-18 | fix corner case in `unused` (#3499)...fixes #3497 | Alex Lam S.L |
2019-10-18 | fix corner case in `unused` (#3496)...fixes #3495 | Alex Lam S.L |
2019-05-29 | enhance `assignments` & `unused` (#3428)...closes #3427 | Alex Lam S.L |
2019-05-12 | fix corner case in `assignments` (#3407)...fixes #3406 | Alex Lam S.L |
2019-05-10 | fix corner case in `inline` (#3401)...fixes #3400 | Alex Lam S.L |
2019-04-30 | unify logging functionality (#3392)...fixes #3253 fixes #3254 | Alex Lam S.L |
2019-04-24 | fix corner case in `assignments` (#3376)...fixes #3375 | Alex Lam S.L |
2018-08-23 | fix corner case in `unused` (#3234)...fixes #3233 | Alex Lam S.L |
2018-07-01 | fix corner case in `unused` | alexlamsl |
2018-06-24 | enhance `arguments` (#3193)...fixes #3192 | Alex Lam S.L |
2018-05-24 | fix corner cases with `eval()` (#3147)...fixes #3146 | Alex Lam S.L |
2018-03-13 | preserve non-constant value assignments with modifications (#2997)...fixes #2995 | Alex Lam S.L |
2018-02-17 | drop unused "class" definition IIFEs (#2923)...fixes #805 | Alex Lam S.L |
2018-01-26 | fix accounting after conversion to assignment (#2847)...Missing reference to `AST_SymbolRef` created by `unused` causes `collapse_vars` to misbehave. fixes #2846 | Alex Lam S.L |
2018-01-11 | fix nested `unused` assignments (#2769)...fixes #2768 | Alex Lam S.L |
2018-01-04 | drop `unused` assignment based on `reduce_vars` (#2709) | Alex Lam S.L |
2017-12-27 | retain recursive function names (#2667)...fixes #2665 | Alex Lam S.L |
2017-12-27 | fix bugs on substituted `AST_Defun` (#2661)...fixes #2660 | Alex Lam S.L |
2017-12-26 | improve `unused` over duplicate variable names (#2656) | Alex Lam S.L |
2017-12-14 | fold `cascade` functionality into `collapse_vars` (#2586) | Alex Lam S.L |
2017-12-09 | improve `unused` on assign-only symbols (#2568) | Alex Lam S.L |
2017-11-28 | improve synergy between `collapse_vars` & `unused` (#2521) | Alex Lam S.L |
2017-11-28 | drop assignment in `AST_VarDef.value` (#2522)...fixes #2516 | 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-11-09 | fix multiple nested function substitutions (#2458)...fixes #2449 | Alex Lam S.L |
2017-11-05 | extend function inlining safety checks (#2430) | Alex Lam S.L |
2017-10-09 | perform `reduce_vars` on safe literals (#2351)...- constant expression - single reference - same scope - not across loop body | Alex Lam S.L |
2017-08-29 | fix `unused` patching of `AST_For.init` blocks (#2289)...fixes #2288 | Alex Lam S.L |
2017-07-14 | drop `unused` compound assignments (#2230)...fixes #2226 | Alex Lam S.L |
2017-07-02 | drop argument value after `collapse_vars` (#2190) | Alex Lam S.L |
2017-07-02 | improve `inline` efficiency (#2188)...... by teaching `collapse_vars` some new tricks. fixes #2187 | Alex Lam S.L |
2017-06-16 | enforce `inline` scope restriction (#2106)...fixes #2105 | Alex Lam S.L |
2017-06-04 | fix `AST_Function` scope invariance (#2052)...improve function name hack in `run_code()` | Alex Lam S.L |
2017-05-12 | remove support for `const` (#1910)...As this is not part of ES5. | Alex Lam S.L |
2017-05-12 | fix invalid transform on `const` (#1919)...- preserve (re)assignment to `const` for runtime error - suppress `cascade` on `const`, as runtime behaviour is ill-defined | Alex Lam S.L |
2017-05-06 | enhance `collapse_vars` (#1862)...- extend expression types - `a++` - `a=x;` - extend scan range - `for(init;;);` - `switch(expr){case expr:}` - `a = x; a = a || y;` - terminate upon `debugger;` closes #1821 fixes #27 fixes #315 fixes #1858 | Alex Lam S.L |
2017-04-23 | fix `AST_For.init` patch-up in `drop_unused()` (#1839)...fixes #1838 | Alex Lam S.L |
2017-04-20 | improve `unused` (#1832)...- extract leading value with side-effects out of `var` statement - reduce scanning of `AST_Definitions` from 3 passes to just once | Alex Lam S.L |
2017-04-20 | fix `unused` on labeled for-loop (#1831)...fixes #1830 | Alex Lam S.L |
2017-04-17 | compress duplicated variable definitions (#1817)...These are surprisingly common, as people reuse the same variable name within loops or switch branches. | Alex Lam S.L |
2017-04-08 | fix `delete` corner cases (#1799)...- assignment - boolean - conditional - sequence | Alex Lam S.L |
2017-03-30 | optimize try-catch-finally (#1731)...- eliminate empty blocks - flatten out if try-block does not throw | Alex Lam S.L |
2017-03-29 | fix corner case in `unused` (#1718)...When fixing catch-related issue in #1715, it tries to optimise for duplicate definitions but did not take anonymous functions into account. Remove such optimisation for now and we can cover this as a more general rule later. | Alex Lam S.L |
2017-03-28 | fix `unused` on var of the same name within catch (#1716)...fixes #1715 | Alex Lam S.L |
2017-03-28 | drop anonymous function name when overshadowed by other declarations (#1712)...fixes #1709 | Alex Lam S.L |
2017-03-25 | fix invalid `AST_For.init` (#1657)...Turns out the only place in `Compressor` which can generate invalid `AST_For.init` is within `drop_unused()`, so focus the fix-up efforts. supercedes #1652 fixes #1656 | Alex Lam S.L |
2017-03-09 | fix & improve function argument compression (#1584)...- one-use function call => IIFE should take `eval()` & `arguments` into account - if unused parameter cannot be eliminated, replace it with `0` fixes #1583 | Alex Lam S.L |
2017-03-09 | scan RHS of dropped assignments (#1581)...- similar case as #1578 but against #1450 instead - fix `this` binding in #1450 as well closes #1580 | Alex Lam S.L |
2017-03-08 | scan assignment value in drop_unused() (#1578)...those were not optimised for `unused` before, which made it necessary for `reduce_vars` to have separate steps for `keep_fnames` docs update by @kzc closes #1577 | Alex Lam S.L |
2017-03-03 | process code with implicit return statement (#1522)...Bookmarklet for instance implicitedly assumes a "completion value" without using `return`. The `expression` option now supports such use cases. Optimisations on IIFEs also enhanced. fixes #354 fixes #543 fixes #625 fixes #628 fixes #640 closes #1293 | Alex Lam S.L |