aboutsummaryrefslogtreecommitdiff
path: root/test/compress/collapse_vars.js
AgeCommit message (Expand)Author
2018-04-27workaround `vm` context issue in `node-chakracore` (#3106)Alex Lam S.L
2018-04-25better fix for #2506 (#3099)Alex Lam S.L
2018-04-24handle RHS side-effects in `collapse_vars` (#3097)...fixes #3096Alex Lam S.L
2018-03-30handle modifications to `this` correctly (#3036)...fixes #3032Alex Lam S.L
2018-03-17extend fuzzy RHS folding (#3006)...- `a = []; if (1) x();` => `if (a = []) x();`Alex Lam S.L
2018-03-06handle negated constants correctly in `collapse_vars` (#2975)...fixes #2974Alex Lam S.L
2018-02-28migrate safe transformations out of `unsafe_comps` (#2962)...fixes #2959Alex Lam S.L
2018-02-28drop `side_effects`-free `return` values (#2965)Alex Lam S.L
2018-02-28enhance `collapse_vars` (#2952)...- `a = b, b` => `a = b` - `a.b = c, c()` => `(a.b = c)()`Alex Lam S.L
2018-02-26improve fix for #2954 (#2958)Alex Lam S.L
2018-02-25fix `collapse_vars` on nested exception (#2955)...fixes #2954Alex Lam S.L
2018-02-18fix crash in `may_throw()` (#2932)...fixes #2931Alex Lam S.L
2018-02-17drop unused "class" definition IIFEs (#2923)...fixes #805Alex Lam S.L
2018-02-14fix `collapse_vars` within loops (#2915)...fixes #2914Alex Lam S.L
2018-02-13fix corner case in `collapse_vars` (#2909)...fixes #2908Alex Lam S.L
2018-02-08account for exceptions in `AST_Assign.left` (#2892)...fixes #2891Alex Lam S.L
2018-02-04improve exceptional flow compression by `collapse_vars` (#2880)Alex Lam S.L
2018-02-04maintain order between side-effects and externally observable assignments (#2......fixes #2878Alex Lam S.L
2018-02-03handle `break` & `continue` in `collapse_vars` (#2875)...fixes #2873Alex Lam S.L
2018-02-03allow `collapse_vars` across conditional branches (#2867)Alex Lam S.L
2018-02-02fix missing corner case in #2855 (#2868)Alex Lam S.L
2018-02-01account for declaration assignment in `collapse_vars` (#2859)...fixes #2858Alex Lam S.L
2018-01-31relax `collapse_vars` on `AST_Exit` (#2855)...First introduced in #1862 to stop assignments to migrate beyond `return` or `throw`. Since then `collapse_vars` has been improved to handle various side-effect-related corner cases.Alex Lam S.L
2018-01-29compress chained compound assignments (#2850)Alex Lam S.L
2018-01-19improve `unused` on built-in functions (#2817)Alex Lam S.L
2018-01-16general improvements around `AST_ForIn` (#2796)...- compress using `collapse_vars` - remove unused `name` - simplify `loop_body`Alex Lam S.L
2018-01-15enhance `collapse_vars` (#2788)Alex Lam S.L
2018-01-09patch variable declaractions extracted within `catch` (#2753)...fixes #2749Alex Lam S.L
2017-12-26replace single-use recursive functions (#2659)...fixes #2628Alex Lam S.L
2017-12-18improve transversal efficiency in `collapse_vars` (#2611)...fixes #2603Alex Lam S.L
2017-12-15handle `inline` of function arguments (#2590)...fixes #2476Alex Lam S.L
2017-12-14improve `collapse_vars` (#2591)...- handle single-use assignments other than `AST_VarDef` - scan `AST_Call` for candidatesAlex Lam S.L
2017-12-14drop local assign-only variable in `return` (#2587)Alex Lam S.L
2017-12-14fold `cascade` functionality into `collapse_vars` (#2586)Alex Lam S.L
2017-12-13recover lost opportunities from #2574 (#2584)Alex Lam S.L
2017-12-13improve `collapse_vars` on side-effect-free replacements (#2583)Alex Lam S.L
2017-12-12fix `AST_VarDef.may_throw()` (#2580)Alex Lam S.L
2017-12-11fix `collapse_vars` on `switch` (#2578)Alex Lam S.L
2017-12-11handle exceptional flow correctly in `collapse_vars` (#2574)...fixes #2571Alex Lam S.L
2017-11-28improve synergy between `collapse_vars` & `unused` (#2521)Alex Lam S.L
2017-11-28drop assignment in `AST_VarDef.value` (#2522)...fixes #2516Alex Lam S.L
2017-11-24fix argument/atom collision by `collapse_vars` (#2507)...fixes #2506Alex Lam S.L
2017-11-24eliminate invalid state caching in `collapse_vars` (#2502)...fixes #2497Alex Lam S.L
2017-11-13fix replacement logic in `collapse_vars` (#2475)Alex Lam S.L
2017-11-12allow symbol replacement on multiple occurrences (#2472)...- all-or-nothing replacement - avoid unmangleable names fixes #2436Alex 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-11-09fix multiple nested function substitutions (#2458)...fixes #2449Alex Lam S.L
2017-11-06consolidate & enhance `unused` (#2439)...- defer declaration removal in `collapse_vars` - account for `AST_SymbolFunarg` in deduplication - private accounting for `collapse_vars` - avoid issues with identity reference due to deep cloning fixes #2437Alex Lam S.L
2017-11-05maintain call argument order in `collapse_vars` (#2426)...fixes #2425Alex Lam S.L
2017-10-23deduplicate declarations regardless of `toplevel` (#2393)Alex Lam S.L