Commit Graph

  • b9fc5a08c4 Merge ed868e294f into 13be50a4a9 kzc 2017-02-25 22:47:02 +0000
  • 13be50a4a9 faster tree transversal (#1462) Alex Lam S.L 2017-02-26 05:58:26 +0800
  • 03b1c97578 faster tree transversal - convert [].forEach() to for-loops alexlamsl 2017-02-03 14:50:04 +0800
  • 6bf36b73ef Add drop_error to new Error pborunda 2017-02-25 10:34:26 -0700
  • 16cd5d57a5 consolidate evaluate & reduce_vars (#1505) Alex Lam S.L 2017-02-26 00:40:33 +0800
  • e8996c61b6 consolidate evaluate & reduce_vars - improve marking efficient - apply smarter const replacement to var alexlamsl 2017-02-25 19:40:41 +0800
  • 43ff5ed37f Add option discard_error: Error('foo') -> Error() pborunda 2017-02-24 16:01:59 -0700
  • 108b6cbf3a Merge remote-tracking branch 'refs/remotes/mishoo/master' pborunda 2017-02-24 15:47:43 -0700
  • e31a96e0b5 Merge fa69efa0c8 into 834f9f3924 Artem S Vybornov 2017-02-24 21:53:59 +0000
  • 834f9f3924 update docs for pure_funcs & drop_console (#1503) Alex Lam S.L 2017-02-25 04:13:10 +0800
  • cf0951f726 allow --in-source-map inline (#1490) Alex Lam S.L 2017-02-25 04:11:21 +0800
  • e29d290d93 update docs for pure_funcs & drop_console alexlamsl 2017-02-25 02:12:53 +0800
  • 4199be943e allow --in-source-map inline - limited to one input file (or stdin) - only works with built-in parser alexlamsl 2017-02-15 18:31:48 +0800
  • 16d6e0e3a8 Merge c3b55214e4 into 07734b000a Anthony Van de Gejuchte 2017-02-24 11:01:45 +0000
  • f9bc0b74d8 Merge 3ec5daca70 into 852f78491a Alex Lam S.L 2017-02-24 01:52:34 +0000
  • 660d605067 Merge d0d37f8e2e into 852f78491a anatdagan 2017-02-24 01:01:49 +0000
  • 852f78491a Avoid using exports when undefined (#1471) Ondřej Španěl 2017-02-24 01:51:24 +0100
  • 07734b000a Destructuring consistency fixes (#1417) Anthony Van de Gejuchte 2017-02-24 01:49:19 +0100
  • 85c1cba760 Remove duplicated code (#1456) Anthony Van de Gejuchte 2017-02-24 01:48:13 +0100
  • 229e42cdee Merge pull request #1485 from alexlamsl/merge-2.8.0 Alex Lam S.L 2017-02-24 07:33:57 +0800
  • 4e49302916 enable collapse_vars & reduce_vars by default - fix corner cases in const optimisation - deprecate /*@const*/ alexlamsl 2017-02-24 01:46:57 +0800
  • 3f44345b24 Merge afc3108a9a into eb55d8a9bb Alex Lam S.L 2017-02-23 17:32:23 +0000
  • afc3108a9a enable collapse_vars & reduce_vars by default - fix corner cases in const optimisation - deprecate /*@const*/ alexlamsl 2017-02-21 17:09:09 +0800
  • 5b74a07c4d Merge abed0b526b into eb55d8a9bb kzc 2017-02-23 13:28:26 +0000
  • 1e51586996 Support marking a call as pure kzc 2017-02-21 14:24:18 +0800
  • d48a3080ac Fix: AST_Accessor missing start / end tokens Ondřej Španěl 2017-02-20 17:14:53 +0800
  • 26fbeece1c fix pure_funcs & improve side_effects - only drops side-effect-free arguments - drop side-effect-free parts with discarded value from AST_Seq & AST_SimpleStatement alexlamsl 2017-02-20 01:46:59 +0800
  • d4da766384 Merge b943c0d438 into eb55d8a9bb kzc 2017-02-21 05:31:40 +0000
  • b943c0d438 have #__PURE__ hint only work when compress side_effects option enabled kzc 2017-02-21 00:30:11 -0500
  • 8898b8a0fe clean up max_line_len - never exceed specified limit - otherwise warning is shown - enabled only for final output alexlamsl 2017-02-18 22:44:53 +0800
  • ec64acd2c8 introduce unsafe_proto - Array.prototype.slice => [].slice alexlamsl 2017-02-18 19:34:54 +0800
  • ac0b61ed6e remove extraneous spaces between ++/+/--/- alexlamsl 2017-02-18 19:33:53 +0800
  • c06a50f338 Add .gitattributes to checkout lf eol style Anthony Van de Gejuchte 2017-02-18 19:33:05 +0800
  • 09f9ae2de9 improve --beautify bracketize reduce whitespaces from if-else statements alexlamsl 2017-02-18 19:30:33 +0800
  • 7e6331bb39 add benchmark & JetStream tests - test/benchmark.js measures performance - test/jetstream.js verifies correctness - configurable mangle/compress/output options alexlamsl 2017-02-18 19:28:25 +0800
  • e275148998 enhance global_defs - support arrays, objects & AST_Node - support "a.b":1 on both cli & API - emit warning if variable is modified - override top-level variables alexlamsl 2017-02-18 19:27:31 +0800
  • 974247c8c0 evaluate AST_SymbolRef as parameter fix invalid boolean conversion now exposed in make_node_from_constant() alexlamsl 2017-02-18 19:22:24 +0800
  • a0f4fd390a improve reduce_vars and fix a bug - update modified flag between compress() passes - support IIFE arguments - fix corner case with multiple definitions alexlamsl 2017-02-18 19:19:55 +0800
  • b8b133d91a improve keep_fargs & keep_fnames - utilise in_use_ids instead of unreferenced() - drop_unused now up-to-date for subsequent passes alexlamsl 2017-02-18 19:19:12 +0800
  • c525a2b190 fix duplicated test names alexlamsl 2017-02-18 19:15:09 +0800
  • 6ffbecb72b smarter const replacement taking name length into account kzc 2017-02-18 19:12:57 +0800
  • f0ff6189be clean up negate_iife - remove extra tree scanning phase for negate_iife - negate_iife now only deals with the narrowest form, i.e. IIFE sitting directly under AST_SimpleStatement - booleans, conditionals etc. will now take care the rest via more accurate accounting - a(); void b(); => a(); b(); alexlamsl 2017-02-18 19:11:57 +0800
  • 6b3c49e458 improve string concatenation shuffle associative operations to minimise parentheses and aid other uglification efforts alexlamsl 2017-02-18 19:07:52 +0800
  • f584ca8d07 -c sequences=N suboptimal at N expression cutoff alexlamsl 2017-02-18 19:07:03 +0800
  • ae4db00991 tweak do-while loops - do{...}while(false) => {...} - clean up AST_While logic alexlamsl 2017-02-18 19:05:54 +0800
  • 100307ab31 fixes & improvements to [].join() alexlamsl 2017-02-18 19:05:11 +0800
  • 148047fbbf drop unused: toplevel, assign-only - assign statement does not count towards variable usage by default - only works with assignments on the same scope level as declaration - can be disabled with unused set to "keep_assign" - toplevel to drop unused top-level variables and/or functions - top_retain to whitelist top-level exceptions alexlamsl 2017-02-18 19:03:53 +0800
  • d11dca3cf9 fix stray else in compress with conditionals=false kzc 2017-02-18 19:02:59 +0800
  • 883ce8148b have [@#]__PURE__ regex work with node 0.10.x kzc 2017-02-20 22:41:10 -0500
  • d35b92cff6 remove [#@]__PURE__ hint from comment when pure call dropped kzc 2017-02-20 21:49:47 -0500
  • 8aff2332e5 Refactor as required (scope, naming). Ondřej Španěl 2017-02-20 09:39:10 +0100
  • 525edd1026 Merge 6cd98c7167 into eb55d8a9bb Alex Lam S.L 2017-02-19 17:33:39 +0000
  • 6cd98c7167 fix pure_funcs & improve side_effects - only drops side-effect-free arguments - drop side-effect-free parts with discarded value from AST_Seq & AST_SimpleStatement alexlamsl 2017-02-17 16:00:46 +0800
  • 3ec5daca70 clean up max_line_len - never exceed specified limit - otherwise warning is shown - enabled only for final output alexlamsl 2017-02-18 17:59:54 +0800
  • c930ec0a17 Merge 7c4bf9d091 into eb55d8a9bb Alex Lam S.L 2017-02-18 11:24:54 +0000
  • 7c4bf9d091 enhance global_defs - support arrays, objects & AST_Node - support "a.b":1 on both cli & API - emit warning if variable is modified - override top-level variables alexlamsl 2017-02-08 00:57:02 +0800
  • e5badb9541 enable typeof "undefined" for general use move out of unsafe, guard corner case with screw_id8 instead alexlamsl 2017-02-18 19:01:42 +0800
  • fa668a28b4 fix corner case in keep_fnames happens when inner function: - just below top level - not referenced - unused is disabled alexlamsl 2017-02-18 19:00:54 +0800
  • 686a496b1c remove unused AST_Scope.nesting & AST_SymbolRef.frame they are computed but never used alexlamsl 2017-02-18 18:59:40 +0800
  • 11676f9d72 fix crash in unsafe replacement of undefined remove extraneous call to AST_SymbolRef.reference() alexlamsl 2017-02-18 18:58:23 +0800
  • dd31d12a91 Improve optimizing function() { if(c){return foo} bar();} Anthony Van de Gejuchte 2017-02-18 18:56:18 +0800
  • ca8fbd6e13 introduce unsafe_proto - Array.prototype.slice => [].slice alexlamsl 2017-02-16 13:58:48 +0800
  • 452e2d37ed Testing AST_SymbolRef and AST_ObjectProperty as well. Ondřej Španěl 2017-02-16 17:22:51 +0100
  • 97e55c3372 Travis, please try again. Ondřej Španěl 2017-02-16 15:39:55 +0100
  • 37ea9df24f Implement createAccessor using embed_tokens. Adjusted test to match expected result. Ondřej Španěl 2017-02-16 13:55:24 +0100
  • 4394fe7dcf Improved the test case - test tokens against expected values. Ondřej Španěl 2017-02-16 12:51:53 +0100
  • 84adda7c20 Test case for the fix. Ondřej Španěl 2017-02-16 12:21:07 +0100
  • e587f3b760 Fix: AST_Accessor missing start / end tokens - #1492 Ondřej Španěl 2017-02-16 11:30:23 +0100
  • d4533e712a Merge 01ba7ada6a into eb55d8a9bb Anthony Van de Gejuchte 2017-02-15 12:31:03 +0000
  • 2493c9de66 Merge 930f995321 into 4bd31607f6 kzc 2017-02-15 12:31:03 +0000
  • 6f7e83d060 remove extraneous spaces between ++/+/--/- alexlamsl 2017-02-14 13:40:48 +0800
  • a97f155db0 Merge c393f3406c into eb55d8a9bb kzc 2017-02-14 11:07:07 +0000
  • 893ce1a8b1 Merge 1219565fda into eb55d8a9bb truiken 2017-02-14 11:07:07 +0000
  • 831d3312ad Merge f6c309880e into eb55d8a9bb kzc 2017-02-14 07:27:28 +0000
  • 53a8cdbb1f Merge 605671ef5e into eb55d8a9bb Anthony Van de Gejuchte 2017-02-14 07:27:28 +0000
  • e38f305d48 Merge ca44342c4b into eb55d8a9bb Anthony Van de Gejuchte 2017-02-14 07:27:27 +0000
  • 4cb4765564 Merge 3502bd101d into eb55d8a9bb kzc 2017-02-13 22:06:55 +0000
  • ffe6b66e11 Merge 8614c7b814 into eb55d8a9bb Jann Horn 2017-02-13 22:06:54 +0000
  • 6a6d170198 Merge 23ec215401 into eb55d8a9bb Fábio Santos 2017-02-13 08:56:50 +0000
  • c39e64a577 Merge 29e1ff0981 into eb55d8a9bb Richard van Velzen 2017-02-13 08:56:49 +0000
  • f05160b7ac Merge 17b37b8182 into eb55d8a9bb Anthony Van de Gejuchte 2017-02-12 14:23:44 +0000
  • 17b37b8182 Add .gitattributes to checkout lf eol style Anthony Van de Gejuchte 2016-10-31 00:27:15 +0100
  • da9329b00e Merge 0b196d93f2 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:51:58 +0000
  • 9beed3f03e Merge 1aade735d0 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:37:13 +0000
  • e9b10d580d Merge 9c794844af into eb55d8a9bb Alex Lam S.L 2017-02-12 09:37:13 +0000
  • 520db07334 Merge 263fb4c2d9 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:37:13 +0000
  • db668c4d05 Merge 1fd8caaf00 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:41 +0000
  • 9f66a063ef Merge cebff96bb2 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:40 +0000
  • 78d25b003e Merge 9098f2b826 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:39 +0000
  • 1b8f9a7fb4 Merge 7969146847 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:39 +0000
  • 5265c5891c Merge ee08f7b2c6 into eb55d8a9bb kzc 2017-02-12 09:19:38 +0000
  • f0ac859a9a Merge c19eed46dd into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:37 +0000
  • c06229fa14 Merge 73bc25bf66 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:36 +0000
  • 193e51dfcb Merge 96e5f90907 into eb55d8a9bb David BRETIN 2017-02-12 09:19:36 +0000
  • 0c5f9464c0 Merge cd167d112d into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:36 +0000
  • e4553a8160 Merge 33472c6fee into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:36 +0000
  • 55c70560de Merge 1f34538576 into eb55d8a9bb anatdagan 2017-02-12 09:19:36 +0000
  • 1701dd2941 Merge 1e96ac3ed7 into eb55d8a9bb Alex Lam S.L 2017-02-12 09:19:35 +0000
  • eb55d8a9bb Merge pull request #1481 from anatdagan/propsmangle_only_identifiers Mihai Bazon 2017-02-12 10:59:43 +0200
  • ee08f7b2c6 smarter const replacement taking name length into account kzc 2017-02-02 09:11:01 -0500