aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
AgeCommit message (Expand)Author
2017-02-24enable `collapse_vars` & `reduce_vars` by default...alexlamsl
2017-02-21Support marking a call as pure...kzc
2017-02-21fix `pure_funcs` & improve `side_effects`...alexlamsl
2017-02-21introduce `unsafe_proto`...alexlamsl
2017-02-21enhance `global_defs`...alexlamsl
2017-02-21evaluate AST_SymbolRef as parameter...alexlamsl
2017-02-21improve reduce_vars and fix a bug...alexlamsl
2017-02-21improve keep_fargs & keep_fnames...alexlamsl
2017-02-21smarter const replacement taking name length into account...kzc
2017-02-21clean up `negate_iife`...alexlamsl
2017-02-21improve string concatenation...alexlamsl
2017-02-21`-c sequences=N` suboptimal at N expression cutoff...alexlamsl
2017-02-21tweak do-while loops...alexlamsl
2017-02-21fixes & improvements to [].join()...alexlamsl
2017-02-21drop unused: toplevel, assign-only...alexlamsl
2017-02-21fix stray else in compress with conditionals=false...kzc
2017-02-18enable typeof "undefined" for general use...alexlamsl
2017-02-18fix crash in unsafe replacement of undefined...alexlamsl
2017-02-18Improve optimizing `function() { if(c){return foo} bar();}`...Anthony Van de Gejuchte
2017-01-26optimise binary operands with evaluate() (#1427)...Alex Lam S.L
2017-01-26augment evaluate to extract within objects (#1425)...Alex Lam S.L
2017-01-19add missing LHS cases which global_defs should avoidalexlamsl
2016-11-29Do not overwrite options.comments + cleanupAnthony Van de Gejuchte
2016-10-06Fix (typeof side_effect()) in boolean context...kzc
2016-10-01Optimize unmodified variablesalexlamsl
2016-09-01Account for side effects in `string + expr` optimizationkzc
2016-08-30implement optimization: (x = 2 * x) ---> (x *= 2)kzc
2016-08-17Fix negate_iife transform to return a correct tree for nested IIFEs...Richard van Velzen
2016-07-15Keep const in own scope while compressing...Anthony Van de Gejuchte
2016-07-01Change the default sequences limit to 200 to speed up compress....kzc
2016-07-01Allow sequences maximum length to be user configurable.kzc
2016-06-30Enable --screw-ie8 by default....kzc
2016-06-30Fix spidermonkey AST (ESTree) export and import, Array holes...kzc
2016-06-21Fix conditional expressions of form (x ? -1 : -1)...kzc
2016-06-21Don't replace undefined, NaN and Infinity within with scopekzc
2016-06-15Fix test262 failures related to <, <=, in and instanceof...Anthony Van de Gejuchte
2016-06-12Don't drop unused if scope uses with statement...Anthony Van de Gejuchte
2016-05-27collapse_vars: Do not consider RegExp literals to be constants...kzc
2016-05-24Optimize if_return for single if/return cases....kzc
2016-05-24Completely allow evaluating -0Richard van Velzen
2016-05-17Never produce -0 when evaluating expressions (like -"")...Richard van Velzen
2016-05-15Simplify iife `new` fix...kzc
2016-05-09Do not apply negate_iife optimization to `new` expressionkzc
2016-04-23Hoist functions when reversing if (x) return; ... vs. if (!x) ......Richard van Velzen
2016-04-19Add `passes` compress option. Fix duplicate compress warnings.kzc
2016-04-13Prevent endless recursion when evaluating self-referencing consts...Richard van Velzen
2016-04-12Actually limit sequence length....Mihai Bazon
2016-04-11Fix warnings for referenced non-hoisted functions....kzc
2016-04-07Avoid using inherited hasOwnProperty...Mihai Bazon
2016-04-02Optimize ternaries with boolean consequent or alternative....kzc