aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
AgeCommit message (Expand)Author
2018-05-06fix corner case in `reduce_vars` (#3124)Alex Lam S.L
2018-05-05fix various corner cases (#3123)Alex Lam S.L
2018-05-04speed up `collapse_vars` (#3119)Alex Lam S.L
2018-05-04fix `reduce_vars` on nested invocations (#3118)Alex Lam S.L
2018-05-03compress `AST_Sequence` within `AST_Call` (#3117)Alex Lam S.L
2018-05-03better fix for #3113 (#3115)Alex Lam S.L
2018-05-02improve `reduce_vars` (#3112)...fixes #3110Alex Lam S.L
2018-04-26improve `collapse_vars` (#3103)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-04-15improve performance when handling unused variables in `collapse_vars` (#3084)...fixes #3082Alex Lam S.L
2018-04-11fix `inline` of `catch`-scoped variables (#3077)...fixes #3076Alex Lam S.L
2018-04-11suppress `hoist_props` for embedded assignments (#3074)Alex Lam S.L
2018-04-11extend `hoist_props` (#3073)...- handle `AST_Assign` the same way as `AST_VarDef` - inject `AST_Var` as succeeding statement fixes #3071Alex Lam S.L
2018-04-11extend `join_vars` on object assignments (#3072)Alex Lam S.L
2018-04-10handle flow control in loops with `reduce_vars` (#3069)...fixes #3068Alex Lam S.L
2018-04-10handle `pure_funcs` under `inline` & `reduce_vars` correctly (#3066)...fixes #3065Alex Lam S.L
2018-04-06fix AST corruption during `inline` of simple `return` (#3056)...fixes #3054Alex Lam S.L
2018-04-03improve performance through `makePredicate()` (#3048)Alex Lam S.L
2018-04-02fix tree traversal on `AST_Do` (#3047)...fixes #3046Alex Lam S.L
2018-03-31fix escape analysis on `AST_New` (#3043)...fixes #3042Alex Lam S.L
2018-03-30handle modifications to `this` correctly (#3036)...fixes #3032Alex Lam S.L
2018-03-23fix corner case in `hoist_props` (#3022)...fixes #3021Alex Lam S.L
2018-03-23improve performance (#3020)...- replace `find_if()` with `all()` wherever possible - move ESTree-specific logic out of `figure_out_scope()`Alex Lam S.L
2018-03-23fix nested `inline` within loop (#3019)...fixes #3018Alex Lam S.L
2018-03-22fix corner case in `inline` (#3017)...fixes #3016Alex Lam S.L
2018-03-17extend fuzzy RHS folding (#3006)...- `a = []; if (1) x();` => `if (a = []) x();`Alex Lam S.L
2018-03-16improve truthy compression (#3009)Alex Lam S.L
2018-03-13preserve non-constant value assignments with modifications (#2997)...fixes #2995Alex Lam S.L
2018-03-11handle `case` correctly under `reduce_vars` (#2993)...fixes #2992Alex Lam S.L
2018-03-06handle negated constants correctly in `collapse_vars` (#2975)...fixes #2974Alex Lam S.L
2018-03-02compress `arguments[index]` (#2967)...- always replace with existing parameter - only introduce new parameter if `keep_fargs` is disabledAlex Lam S.L
2018-03-02fix value reference caching in `evaluate` (#2969)...fixes #2968Alex Lam S.L
2018-02-28enhance `conditionals` (#2966)...- `x ? (y, w) : (z, w)` => `x ? y : z, w`Alex 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-26drop lone "use strict" in function body (#2963)...fixes #2961Alex 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-24minor clean-ups (#2951)Alex Lam S.L
2018-02-20workaround `pure_getters=true` when dropping unused assignments (#2939)...fixes #2938Alex Lam S.L
2018-02-19improve `unsafe` `evaluate` of `function` (#2936)...Miscellaneous - simplify `run_code()` hackAlex Lam S.L
2018-02-18fix crash in `may_throw()` (#2932)...fixes #2931Alex Lam S.L
2018-02-18fix `dead_code` on exceptional `return` (#2930)...fixes #2929Alex Lam S.L
2018-02-17fix `unsafe` `evaluate` of `function` property (#2927)...fixes #2926Alex Lam S.L
2018-02-17drop unused "class" definition IIFEs (#2923)...fixes #805Alex Lam S.L
2018-02-17improve `inline` efficiency (#2924)Alex Lam S.L
2018-02-16fix `unsafe` `evaluate` of `AST_Function` (#2920)...fixes #2919Alex Lam S.L
2018-02-14fix `unsafe` `evaluate` on type-converting operators (#2917)...fixes #2916Alex Lam S.L