aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
AgeCommit message (Expand)Author
2018-07-01fix corner case in `unused`alexlamsl
2018-06-28implement `directives` (#3203)...fixes #3166Alex Lam S.L
2018-06-06general clean-ups (#3175)Alex Lam S.L
2018-05-07fix various corner cases (#3126)...- augment ufuzz/reminify test options fixes #3125Alex Lam S.L
2018-04-11fix `inline` of `catch`-scoped variables (#3077)...fixes #3076Alex Lam S.L
2018-04-06fix AST corruption during `inline` of simple `return` (#3056)...fixes #3054Alex 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-02-26drop lone "use strict" in function body (#2963)...fixes #2961Alex Lam S.L
2018-02-25deduplicate parenthesis around object and function literals (#2953)Alex Lam S.L
2018-02-17improve `inline` efficiency (#2924)Alex Lam S.L
2018-02-13collapse within unary expressions (#2910)Alex Lam S.L
2018-02-09fix AST corruption due to `collapse_vars` & `inline` (#2899)...fixes #2898Alex Lam S.L
2018-01-19enable `unsafe` for `test/ufuzz.js` (#2819)...- introduce `unsafe_undefined` - safer `.toString()` compression Miscellaneous - rename `unsafe_Function`Alex Lam S.L
2018-01-15avoid double counting within single-use functions (#2785)...fixes #2783Alex Lam S.L
2018-01-07fix recursive function `inline` (#2738)...fixes #2737Alex Lam S.L
2018-01-04fix corner case in `inline` (#2720)Alex Lam S.L
2018-01-04forbid block-scoped `AST_Defun` in strict mode (#2718)Alex Lam S.L
2018-01-04extend `inline` (#2714)...- compress `function` with variables within loops - restrict to `AST_Var` for better compatibility with ES6+Alex Lam S.L
2018-01-04apply `collapse_vars` to loop conditions (#2712)Alex Lam S.L
2018-01-03inline functions with `AST_Var` (#2688)Alex Lam S.L
2018-01-02enhance `collapse_vars` (#2704)Alex Lam S.L
2018-01-02reset argument value within loop after `inline` (#2699)Alex Lam S.L
2018-01-01enhance `join_vars` & `sequences` (#2697)...- nudge declarations without assignments - within `AST_BlockStatement` - across `AST_If`Alex Lam S.L
2017-12-31fix `inline` on duplicate argument names (#2698)Alex Lam S.L
2017-12-28fix function inlining within loops (#2675)...fixes #2663Alex Lam S.L
2017-12-26replace single-use recursive functions (#2659)...fixes #2628Alex Lam S.L
2017-12-26suppress `inline` within substituted `AST_Scope` (#2658)...fixes #2657Alex Lam S.L
2017-12-25fix infinite loop during `inline` (#2645)...fixes #2644Alex Lam S.L
2017-12-24fix corner cases with `collapse_vars`, `inline` & `reduce_vars` (#2637)...fixes #2630Alex 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-19add test for #2613 (#2618)Alex Lam S.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-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-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-14fold `cascade` functionality into `collapse_vars` (#2586)Alex Lam S.L
2017-12-07eliminate noop calls more aggressively (#2559)Alex Lam S.L
2017-12-01improve compression of `if` conditions (#2544)Alex Lam S.L
2017-11-29fix `inline` on nested substitutions (#2533)...fixes #2531Alex 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-05inline single-use functions that are not constant expressions (#2434)...fixes #2428Alex Lam S.L
2017-10-22safer `properties` transform (#2391)...`{ a: x, b: y }.a` => `[ x, y ][0]` - `x` cannot be function containing `this` `[ x, y, z ][1]` => `(x, z, y)` - only if `z` is side-effect-freeAlex Lam S.L
2017-10-22fix `unsafe` escape analysis in `reduce_vars` (#2387)Alex Lam S.L
2017-07-02improve `inline` efficiency (#2188)...... by teaching `collapse_vars` some new tricks. fixes #2187Alex Lam S.L
2017-06-27improve `unsafe_Func` (#2171)...- minimise disturbance to `compute_char_frequency()` - remove extraneous quotation marksAlex Lam S.L