aboutsummaryrefslogtreecommitdiff
path: root/bin/uglifyjs2
AgeCommit message (Expand)Author
2012-09-14more optimizations that v1 does and some cleanups...- a = a + x ==> a+=x - joining consecutive var statements (hoisting is not always desirable) - x == false ==> x == 0, x != true ==> x != 1 - x, x ==> x; x = exp(), x ==> x = exp() - discarding useless break-s Mihai Bazon
2012-09-13added -m and -c optionsMihai Bazon
2012-09-11minorMihai Bazon
2012-09-11fixed some mess with symbols/scope...- all symbols now have a `thedef` property which is a SymbolDef object, instead of the `uniq` that we had before (pointing to the first occurrence of the name as declaration). - for undeclared symbols we still create a SymbolDef object in the toplevel scope but mark it "undeclared" - we can now call figure_out_scope after squeezing, which is useful in order not to mangle names that were dropped by the squeezer Mihai Bazon
2012-09-11checkpoint...- discard statements with no side effects (unsafe? could be) - safer hoist_vars (needs some revamping of scope/mangling) Mihai Bazon
2012-09-10hoist_vars is pretty bad, it seems. cancelled it for now.Mihai Bazon
2012-09-10adaptive base54 digits depending on char frequency (WIP)Mihai Bazon
2012-09-10fix "file" in the source mapMihai Bazon
2012-09-05declared `--stats` as booleanMihai Bazon
2012-09-03minorMihai Bazon
2012-09-03declare boolean optionsMihai Bazon
2012-09-03add -bMihai Bazon
2012-09-02add source mappings for more node types; started CLI utilityMihai Bazon