Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-12-01 | convert to number under boolean context (#2545) | Alex Lam S.L | |
2017-12-01 | improve compression of loop conditions (#2543) | Alex Lam S.L | |
2017-11-29 | backport test from #2526 (#2534) | Alex Lam S.L | |
2017-11-28 | improve synergy between `collapse_vars` & `unused` (#2521) | Alex Lam S.L | |
2017-11-16 | fix cross-scope inlining of `AST_Function`s (#2486) | Alex Lam S.L | |
fixes #2485 | |||
2017-11-11 | extend `reduce_funcs` to cover cross-scope substitutions (#2469) | Alex Lam S.L | |
fixes #2468 | |||
2017-11-11 | implement compress option `reduce_funcs` (#2466) | Alex Lam S.L | |
- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464 | |||
2017-11-10 | fix object literal tracing in `reduce_vars` (#2461) | Alex Lam S.L | |
2017-11-09 | fix multiple nested function substitutions (#2458) | Alex Lam S.L | |
fixes #2449 | |||
2017-11-08 | preserve function identity in `reduce_vars` (#2451) | Alex Lam S.L | |
fixes #2450 | |||
2017-11-07 | handle circular `function` reference gracefully (#2446) | Alex Lam S.L | |
fixes #2442 | |||
2017-11-06 | account for `eval` & `with` in `reduce_vars` (#2441) | Alex Lam S.L | |
fixes #2440 | |||
2017-11-06 | consolidate & enhance `unused` (#2439) | Alex Lam S.L | |
- 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 #2437 | |||
2017-11-05 | extend function inlining safety checks (#2430) | Alex Lam S.L | |
2017-11-05 | consolidate single-use `function` reduction (#2427) | Alex Lam S.L | |
fixes #2423 | |||
2017-11-04 | reduce `this` within functions (#2421) | Alex Lam S.L | |
- only replace same-scope usages - augment `test/ufuzz.js` to test for `this` fixes #2420 | |||
2017-10-29 | enhance `properties` (#2412) | Alex Lam S.L | |
- trim array items only if `side_effects` - extend to non-identifier properties | |||
2017-10-24 | fix `unsafe` `reduce_vars` on arrays & objects (#2397) | Alex Lam S.L | |
2017-10-24 | enhance `unsafe` `evaluate` of arrays & objects (#2394) | Alex Lam S.L | |
2017-10-22 | safer `properties` transform (#2391) | Alex Lam S.L | |
`{ 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-free | |||
2017-10-22 | fix `unsafe` escape analysis in `reduce_vars` (#2387) | Alex Lam S.L | |
2017-10-21 | `unsafe` fix-ups for #2351 (#2379) | Alex Lam S.L | |
2017-10-12 | more tests for #2351 (#2357) | Alex Lam S.L | |
2017-10-09 | perform `reduce_vars` on safe literals (#2351) | Alex Lam S.L | |
- constant expression - single reference - same scope - not across loop body | |||
2017-10-01 | enhance `reduce_vars` for `AST_Accessor` (#2339) | Alex Lam S.L | |
fixes #2336 | |||
2017-07-05 | improve `compress` granularity through `typeofs` (#2201) | Alex Lam S.L | |
fixes #2198 | |||
2017-06-23 | fix `reduce_vars` on `this` (#2145) | Alex Lam S.L | |
fixes #2140 | |||
2017-06-06 | implement function inlining (#2053) | Alex Lam S.L | |
- empty body - single `AST_Return` - single `AST_SimpleStatement` - avoid `/*#__PURE__*/` Miscellaneous - enhance single-use function substitution fixes #281 | |||
2017-06-04 | fix `AST_Function` scope invariance (#2052) | Alex Lam S.L | |
improve function name hack in `run_code()` | |||
2017-05-14 | fix bugs with getter/setter (#1926) | Alex Lam S.L | |
- `reduce_vars` - `side_effects` - property access for object - `AST_SymbolAccessor` as key names enhance `test/ufuzz.js` - add object getter & setter - property assignment to setter - avoid infinite recursion in setter - fix & adjust assignment operators - 50% `=` - 25% `+=` - 2.5% each for the rest - avoid "Invalid array length" - fix `console.log()` - bypass getter - curb recursive reference - deprecate `-E`, always report runtime errors | |||
2017-05-12 | remove support for `const` (#1910) | Alex Lam S.L | |
As this is not part of ES5. | |||
2017-05-12 | avoid `arguments` and `eval` in `reduce_vars` (#1924) | Alex Lam S.L | |
fixes #1922 | |||
2017-05-07 | fix test for #1865 (#1873) | Alex Lam S.L | |
2017-05-06 | fix `unsafe` on `evaluate` of `reduce_vars` (#1870) | Alex Lam S.L | |
Determine if variables with non-constant values can escape and be modified. fixes #1865 | |||
2017-04-30 | enforce `toplevel` on other compress options (#1855) | Alex Lam S.L | |
Respect "funcs" and "vars" properly. fixes #1850 | |||
2017-04-20 | improve `unused` (#1832) | Alex Lam S.L | |
- extract leading value with side-effects out of `var` statement - reduce scanning of `AST_Definitions` from 3 passes to just once | |||
2017-04-18 | support safe reassignments in `reduce_vars` (#1823) | Alex Lam S.L | |
`var a=1;a=2;x(a)` => `x(2)` fix pre-existing issues - reference counting on assignment - walking of anonymous functions - chained assignment | |||
2017-04-18 | fix `reduce_vars` on conditionals (#1822) | Alex Lam S.L | |
2017-04-17 | fix `reduce_vars` on boolean binary expressions (#1819) | Alex Lam S.L | |
Side effects of `&&` and `||` have not mattered until #1814, which takes assignment expressions into account. | |||
2017-04-17 | compress duplicated variable definitions (#1817) | Alex Lam S.L | |
These are surprisingly common, as people reuse the same variable name within loops or switch branches. | |||
2017-04-17 | fix `reduce_vars` within try-block (#1818) | Alex Lam S.L | |
Possible partial execution due to exceptions. | |||
2017-04-17 | enhance `reduce_vars` (#1814) | Alex Lam S.L | |
- allow immediate assignment after declaration of variable - relax modification rule for immutable value - fix order of visit for TreeWalker - remove extraneous code | |||
2017-04-16 | fix variable substitution (#1816) | Alex Lam S.L | |
- let `collapse_vars` take care of value containing any symbols - improve overhead accounting | |||
2017-04-07 | introduce "strict" to `pure_getters` (#1795) | Alex Lam S.L | |
2017-04-07 | fix `reduce_vars` on catch variable (#1794) | Alex Lam S.L | |
Improved catch handling in `figure_out_scope()` means special case treatment of IE8 is no longer valid in `reset_opt_flags()`. Also fixed recursive assignment in variable definition. | |||
2017-04-07 | fix incorrect context in variable substitution (#1791) | Alex Lam S.L | |
`AST_Node.optimize()` is context-aware, so don't cache its results to be used elsewhere. Also fixed a few cases of AST corruption and beef up safety of `pure_getters`. | |||
2017-04-02 | fix corner cases in switch and undefined (#1762) | Alex Lam S.L | |
- fix side effects in switch condition for singular blocks - fix `undefined` confusion with local variable - gate `OPT(AST_Switch)` with `switches` fixes #1758 fixes #1759 | |||
2017-03-27 | handle overlapped variable definitions (#1691) | Alex Lam S.L | |
Process variable definitions with or without assigned values against: - `arguments` - named function arguments - multiple definitions within same scope Essentially demote variable declarations with no value assignments. Also fixed invalid use of `AST_VarDef` over `arguments` - should use a member of `AST_SymbolDeclaration` instead. | |||
2017-03-26 | fix `delete` related issues in `collapse_vars` and `reduce_vars` (#1689) | Alex Lam S.L | |
2017-03-25 | fix `reduce_vars` on `AST_Switch` (#1671) | Alex Lam S.L | |
Take conditional nature of switch branches into account. fixes #1670 |