aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Expand)Author
2017-12-26improve `unused` over duplicate variable names (#2656)Alex Lam S.L
2017-12-26parse LF & comment correctly (#2653)...fixes #2652Alex Lam S.L
2017-12-25add `html-minifier` to benchmarks (#2646)Alex Lam S.L
2017-12-25fix infinite loop during `inline` (#2645)...fixes #2644Alex Lam S.L
2017-12-24fix comments output & improve `/*@__PURE__*/`...- fix whitespace around comments - fix comment parsing around parentheses - consider parentheses when parsing `/*@__PURE__*/` - remove all `/*@__PURE__*/` on output fixes #2638Alex Lam S.L
2017-12-24fix corner cases with `collapse_vars`, `inline` & `reduce_vars` (#2637)...fixes #2630Alex Lam S.L
2017-12-24fix escape analysis on `AST_PropAccess` (#2636)Alex Lam S.L
2017-12-22make comments output more robust (#2633)...- improve handling of comments right after `return` - retain comments after `OutputStream` - preserve trailing comments - fix handling of new line before comments - handle comments around parentheses fixes #88 fixes #112 fixes #218 fixes #372 fixes #2629Alex Lam S.L
2017-12-20remove AST hack from `inline` (#2627)Alex Lam S.L
2017-12-20disable `hoist_funs` by default (#2626)Alex Lam S.L
2017-12-20avoid `inline` of function with special argument names (#2625)Alex Lam S.L
2017-12-19fix `inline` after single-use `reduce_vars` (#2623)Alex Lam S.L
2017-12-19Transform can be simplified when clone is not done. (#2621)Ondřej Španěl
2017-12-19handle global constant collision with local variable after `inline` (#2617)...fixes #2616Alex Lam S.L
2017-12-18compress `apply()` & `call()` of `function` (#2613)...- `fn.apply(a, [ ... ])` => `fn.call(a, ...)` - `fn.call(a, ... )` => `a, fn(...)` where `fn` can be `function` literal or symbol reference linked through `reduce_vars`Alex Lam S.L
2017-12-18drop property assignment to constants (#2612)Alex Lam S.L
2017-12-18improve transversal efficiency in `collapse_vars` (#2611)...fixes #2603Alex Lam S.L
2017-12-17improve `reset_opt_flags()` (#2610)Alex Lam S.L
2017-12-16account for `catch` variable when `inline` (#2605)...fixes #2604Alex Lam S.L
2017-12-16fix nested `inline` (#2602)...fixes #2601Alex Lam S.L
2017-12-15fix escape analysis on `||` and `&&` (#2600)...fixes #2598Alex Lam S.L
2017-12-15fix `dead_code` on nested `try` (#2599)...fixes #2597Alex Lam S.L
2017-12-15fix `reduce_vars` on `do...while` (#2596)Alex Lam S.L
2017-12-15handle `inline` of function arguments (#2590)...fixes #2476Alex Lam S.L
2017-12-14inline single-use `function` across loop (#2594)Alex Lam S.L
2017-12-14fix `reduce_vars` on single `AST_Defun` reference across loop (#2593)Alex Lam S.L
2017-12-14improve `reduce_vars` (#2592)...- account for hoisting nature of `var`Alex 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-14fix `dead_code` on `return`/`throw` within `try` (#2588)Alex 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-13minor clean-up for IIFE (#2582)...- faster exact type match - aggressively convert to `!`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-11remove unused code (#2579)...fixes #2577Alex Lam S.L
2017-12-11escape consecutive unpaired surrogates (#2576)...fixes #2569Alex Lam S.L
2017-12-11handle exceptional flow correctly in `collapse_vars` (#2574)...fixes #2571Alex Lam S.L
2017-12-09improve `unused` on assign-only symbols (#2568)Alex Lam S.L
2017-12-08fix escape analysis for `AST_Throw` (#2564)Alex Lam S.L
2017-12-08fix escape analysis for `AST_Conditional` & `AST_Sequence` (#2563)...fixes #2560Alex Lam S.L
2017-12-08account for side-effects in conditional call inversion (#2562)...fixes #2560Alex Lam S.L
2017-12-07eliminate noop calls more aggressively (#2559)Alex Lam S.L
2017-12-07improve `if_return` (#2558)...`return void x()` => `x()`Alex Lam S.L
2017-12-02fix `dead_code` on `for` (#2552)Alex Lam S.L
2017-12-02improve `evaluate` on `typeof` (#2550)...- gated through `typeofs`Alex Lam S.L
2017-12-01improve boolean compression (#2548)...fixes #2535Alex Lam S.L
2017-12-01improve switch case compression (#2547)Alex Lam S.L
2017-12-01improve `AST_For.init` & `AST_Switch.expression` compression (#2546)Alex Lam S.L