aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2018-03-11preserve case when `inline_script` (#2991)Alex Lam S.L
fixes #2989
2018-03-07fix `mangle` of `AST_SymbolLambda` under `ie8` (#2978)Alex Lam S.L
fixes #2976
2018-03-06handle negated constants correctly in `collapse_vars` (#2975)Alex Lam S.L
fixes #2974
2018-03-02compress `arguments[index]` (#2967)Alex Lam S.L
- always replace with existing parameter - only introduce new parameter if `keep_fargs` is disabled
2018-03-02fix value reference caching in `evaluate` (#2969)Alex Lam S.L
fixes #2968
2018-02-28enhance `conditionals` (#2966)Alex Lam S.L
- `x ? (y, w) : (z, w)` => `x ? y : z, w`
2018-02-28migrate safe transformations out of `unsafe_comps` (#2962)Alex Lam S.L
fixes #2959
2018-02-28drop `side_effects`-free `return` values (#2965)Alex Lam S.L
2018-02-28enhance `collapse_vars` (#2952)Alex Lam S.L
- `a = b, b` => `a = b` - `a.b = c, c()` => `(a.b = c)()`
2018-02-26drop lone "use strict" in function body (#2963)Alex Lam S.L
fixes #2961
2018-02-26improve fix for #2954 (#2958)Alex Lam S.L
2018-02-25fix `collapse_vars` on nested exception (#2955)Alex Lam S.L
fixes #2954
2018-02-25deduplicate parenthesis around object and function literals (#2953)Alex Lam S.L
2018-02-24minor clean-ups (#2951)Alex Lam S.L
2018-02-23improve `mangle` (#2948)Alex Lam S.L
2018-02-20workaround `pure_getters=true` when dropping unused assignments (#2939)Alex Lam S.L
fixes #2938
2018-02-19improve `unsafe` `evaluate` of `function` (#2936)Alex Lam S.L
Miscellaneous - simplify `run_code()` hack
2018-02-18fix crash in `may_throw()` (#2932)Alex Lam S.L
fixes #2931
2018-02-18fix `dead_code` on exceptional `return` (#2930)Alex Lam S.L
fixes #2929
2018-02-17fix `unsafe` `evaluate` of `function` property (#2927)Alex Lam S.L
fixes #2926
2018-02-17drop unused "class" definition IIFEs (#2923)Alex Lam S.L
fixes #805
2018-02-17improve `inline` efficiency (#2924)Alex Lam S.L
2018-02-16fix `unsafe` `evaluate` of `AST_Function` (#2920)Alex Lam S.L
fixes #2919
2018-02-14fix `unsafe` `evaluate` on type-converting operators (#2917)Alex Lam S.L
fixes #2916
2018-02-14fix `collapse_vars` within loops (#2915)Alex Lam S.L
fixes #2914
2018-02-13collapse within unary expressions (#2910)Alex Lam S.L
2018-02-13fix corner case in `collapse_vars` (#2909)Alex Lam S.L
fixes #2908
2018-02-12simplify `do-while` into `for` (#2907)Alex Lam S.L
fixes #2904
2018-02-09fix AST corruption due to `collapse_vars` & `inline` (#2899)Alex Lam S.L
fixes #2898
2018-02-09fix `join_vars` on property accessors (#2895)Alex Lam S.L
fixes #2893
2018-02-08account for exceptions in `AST_Assign.left` (#2892)Alex Lam S.L
fixes #2891
2018-02-06evaluate `to{Low,Upp}erCase()` under `unsafe` (#2886)Alex Lam S.L
2018-02-05change `undefined == x` to `null == x` (#2882)Dan
fixes #2871
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 ↵Alex Lam S.L
(#2879) fixes #2878
2018-02-03handle `break` & `continue` in `collapse_vars` (#2875)Alex Lam S.L
fixes #2873
2018-02-03allow `collapse_vars` across conditional branches (#2867)Alex Lam S.L
2018-02-03fix assignment logic in `reduce_vars` (#2872)Alex Lam S.L
fixes #2869
2018-02-02fix missing corner case in #2855 (#2868)Alex Lam S.L
2018-02-01better fix for #2858 (#2864)Alex Lam S.L
2018-02-01account for side-effects in `comparisons` of `null` & `undefined` (#2863)Alex Lam S.L
2018-02-01simplify comparisons with `undefined` & `null` (#2862)Alex Lam S.L
fixes #2857
2018-02-01avoid `evaluate` of compound assignment after `dead_code` transform (#2861)Alex Lam S.L
fixes #2860
2018-02-01account for declaration assignment in `collapse_vars` (#2859)Alex Lam S.L
fixes #2858
2018-01-31relax `collapse_vars` on `AST_Exit` (#2855)Alex Lam S.L
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.
2018-01-29improve symbol replacement heuristic (#2851)Alex Lam S.L
2018-01-29compress chained compound assignments (#2850)Alex Lam S.L
2018-01-26fix accounting after conversion to assignment (#2847)Alex Lam S.L
Missing reference to `AST_SymbolRef` created by `unused` causes `collapse_vars` to misbehave. fixes #2846
2018-01-23backport of #2835 (#2841)Alex Lam S.L
2018-01-23drop assignments to constant expressions only (#2839)Alex Lam S.L
fixes #2838