Commit Graph

  • 727e9a9fe4 fix cascade on delete operator Conditions including strict mode would make delete return true or false, and are too complex to be evaluated by the compressor. alexlamsl 2017-03-26 17:29:11 +0800
  • 3276740779 fallthrough should not execute case expression (#1683) Alex Lam S.L 2017-03-26 16:52:38 +0800
  • 5509e51098 optimize conditional when condition symbol matches consequent (#1684) kzc 2017-03-26 04:36:33 -0400
  • 74d2f03dc6 de-duplicate trailing cases only avoid all potential side-effects alexlamsl 2017-03-26 16:29:26 +0800
  • 4291ecc77c case expression with side effects can only be de-duplicated at the tail alexlamsl 2017-03-26 15:48:10 +0800
  • fde59dc7d8 optimize conditional when condition symbol matches consequent kzc 2017-03-26 03:26:31 -0400
  • 4ce5c784d6 fallthrough should not execute case expression Also enable switch statement fuzzing. alexlamsl 2017-03-26 15:10:59 +0800
  • 94f84727ce suppress switch branch de-duplication upon side effects (#1682) Alex Lam S.L 2017-03-26 13:32:43 +0800
  • 4fa70aa621 suppress switch branch de-duplication upon side effects alexlamsl 2017-03-26 12:21:34 +0800
  • 8a4f86528f fix side-effects detection on switch statements (#1678) Alex Lam S.L 2017-03-26 12:05:44 +0800
  • adb0e882e9 Improve fuzzer. :) (#1665) Peter van der Zee 2017-03-26 06:04:50 +0200
  • 6a54de79b5 optimize trivial arrow functions with a return statement in braces (#1681) kzc 2017-03-26 00:03:11 -0400
  • 2369e57045 [ES6] optimize trivial arrow functions with a return statement in braces kzc 2017-03-25 18:45:52 -0400
  • 66f98229d8 Improve fuzzer. :) Peter van der Zee 2017-03-24 19:15:15 +0100
  • f83d370f57 improve switch optimisations (#1677) Alex Lam S.L 2017-03-26 05:15:46 +0800
  • 2f6ce541a1 fix side-effects detection on switch statements extension of #1675 alexlamsl 2017-03-26 05:12:09 +0800
  • 1c1e673e52 remove duplicated optimisation for AST_Case - expression already handled by existing rules during descend(node, this) - body can be handled by OPT(AST_Block) alexlamsl 2017-03-26 04:03:15 +0800
  • c7a4c579e7 improve switch optimisations - correctly determine reachability of (default) branches - gracefully handle multiple default branches - optimise branches with duplicate bodies alexlamsl 2017-03-26 03:36:54 +0800
  • b19aa58cff fix has_side_effects() (#1675) Alex Lam S.L 2017-03-25 23:03:26 +0800
  • 86a2601a74 fix has_side_effects() AST_Try is an AST_Block with extra blocks that also need to scan for side-effects. alexlamsl 2017-03-25 22:08:02 +0800
  • 0a65de89b9 fix reduce_vars on AST_Switch (#1671) Alex Lam S.L 2017-03-25 21:17:30 +0800
  • 2436470150 add tests alexlamsl 2017-03-25 20:24:18 +0800
  • 684c4e3b06 fix reduce_vars on AST_Switch Take conditional nature of switch branches into account. alexlamsl 2017-03-25 19:54:45 +0800
  • 6e86ee950d fix typeof side-effects (#1669) Alex Lam S.L 2017-03-25 17:40:18 +0800
  • e30dac8932 fix typeof side-effects has_side_effects() does not take typeof's magical power of not tripping over undeclared variable into account. alexlamsl 2017-03-25 17:18:30 +0800
  • 8ca2401ebe fix dead_code on AST_Switch (#1667) Alex Lam S.L 2017-03-25 16:21:42 +0800
  • f3fc8cb3d3 fix stack alexlamsl 2017-03-25 15:29:14 +0800
  • dba64ee93d fix dead_code on AST_Switch Need to call extract_declarations_from_unreachable_code(). alexlamsl 2017-03-25 15:15:33 +0800
  • b7eae12569 Merge 352bdaecb6 into 491f16c766 pborunda 2017-03-24 21:05:00 +0000
  • 491f16c766 v2.8.16 v2.8.16 Alex Lam S.L 2017-03-25 03:21:16 +0800
  • a30092e20f fix invalid AST_For.init (#1657) Alex Lam S.L 2017-03-25 03:18:36 +0800
  • 499b72e0fc add test alexlamsl 2017-03-25 02:19:09 +0800
  • 3ad69fb652 fix invalid AST_For.init Turns out the only place in Compressor which can generate invalid AST_For.init is within drop_unused(), so focus the fix-up efforts. alexlamsl 2017-03-25 01:58:38 +0800
  • b1abe92e1a introduce ufuzz.js (#1655) Alex Lam S.L 2017-03-25 01:46:12 +0800
  • 37bcbbec24 introduce ufuzz.js alexlamsl 2017-03-24 23:34:47 +0800
  • b454ce667e Update ISSUE_TEMPLATE.md Alex Lam S.L 2017-03-24 23:12:58 +0800
  • 32283a0def fix cascade of evaluate optimisation (#1654) Alex Lam S.L 2017-03-24 22:09:19 +0800
  • ac51d4c5a0 fix corner case in AST_For.init (#1652) Alex Lam S.L 2017-03-24 19:31:17 +0800
  • 8af50201f3 fix cascade of evaluate optimisation Operator has changed, so break out from rest of the rules. alexlamsl 2017-03-24 19:30:08 +0800
  • 0432a7abb9 fix assignment extraction from conditional (#1651) Alex Lam S.L 2017-03-24 18:52:48 +0800
  • 860e5610d0 fix corner case in AST_For.init Enforce null as value for empty initialisation blocks. alexlamsl 2017-03-24 18:43:45 +0800
  • 01df640907 fix assignment extraction from conditional alexlamsl 2017-03-24 17:07:03 +0800
  • f3a1694a41 fix assignment substitution in sequences (#1643) Alex Lam S.L 2017-03-24 14:30:31 +0800
  • 2e0dc97003 improve error marker placement (#1644) Alex Lam S.L 2017-03-24 14:28:40 +0800
  • e2b5a4b9cd improve error marker placement For AST_UnaryPrefix, points to the operator rather than end of expression. alexlamsl 2017-03-24 14:04:28 +0800
  • 7c15aabf0c fix assignment substitution in sequences take side effects of binary boolean operations into account alexlamsl 2017-03-24 13:41:28 +0800
  • 701035621d fix expect_stdout (#1642) Alex Lam S.L 2017-03-24 13:19:50 +0800
  • 432b071d47 add tests for #1627 alexlamsl 2017-03-24 12:48:03 +0800
  • ccaa9a23ef add test for #1640 alexlamsl 2017-03-24 12:27:13 +0800
  • 73ca6810a5 fix expect_stdout compress() may modify input ASTs alexlamsl 2017-03-24 12:13:49 +0800
  • 79334dda10 fix regression: CLI options with hyphens like -b ascii-only (#1640) kzc 2017-03-23 23:55:03 -0400
  • 1a6dff15da fix regression: CLI options with hyphens like -b ascii-only (#1637) kzc 2017-03-23 15:39:24 -0400
  • e918748d88 improve collapsible value detection (#1638) Alex Lam S.L 2017-03-24 02:55:32 +0800
  • 54e8c09425 improve collapsible value detection - #1634 bars variables with cross-scope references in between to collapse - but if assigned value is side-effect-free, no states can be modified, so it is safe to move alexlamsl 2017-03-24 01:16:15 +0800
  • c933cd1bfc Merge d76f5c8cf9 into 6b2f34769a Junrou Nishida 2017-03-23 18:22:39 +0000
  • 1a3b5fd719 Merge 3d4808c5a2 into 6b2f34769a Ashley (Scirra) 2017-03-23 10:15:38 +0000
  • 9e2290b29c Merge pull request #1636 from alexlamsl/harmony-v2.8.15 harmony-v2.8.15 Alex Lam S.L 2017-03-23 16:08:53 +0800
  • 97d0fc271d Merge branch 'master' into harmony-v2.8.15 alexlamsl 2017-03-23 15:11:16 +0800
  • a1cc072985 Merge 15dbf23e64 into 6b2f34769a Alex Lam S.L 2017-03-23 06:42:12 +0000
  • 15dbf23e64 Merge branch 'master' into harmony-v2.8.15 alexlamsl 2017-03-23 14:40:49 +0800
  • 6b2f34769a v2.8.15 v2.8.15 Alex Lam S.L 2017-03-23 13:36:47 +0800
  • 48ffbef51d account for cross-scope modifications in collapse_vars (#1634) Alex Lam S.L 2017-03-23 07:17:34 +0800
  • c0f3feae9f introduce compressor.info() (#1633) Alex Lam S.L 2017-03-23 06:49:49 +0800
  • 36fe1eb794 account for cross-scope modifications in collapse_vars alexlamsl 2017-03-23 06:48:29 +0800
  • a00040dd93 fix a bug in simple_glob (#1632) Alex Lam S.L 2017-03-23 06:11:16 +0800
  • b9ee19d455 introduce compressor.info() report the following only when options.warnings = "verbose" - unused elements due to inlining - collpased variables alexlamsl 2017-03-23 03:40:16 +0800
  • 34326f7868 fix a bug in simple_glob - "?" should not match "/" - other minor clean-ups alexlamsl 2017-03-23 01:42:12 +0800
  • ee95c1b38b metadata cleanup (#1630) Alex Lam S.L 2017-03-23 01:31:46 +0800
  • 4244fd024d metadata cleanup - mention performance anomaly in Node 7 and drop from CI - remove unused npm "scripts" - mark browserify dependency as optional - stop test/mozilla-ast.js from spamming console output in later versions of Node.js alexlamsl 2017-03-22 18:21:59 +0800
  • 89134f3c3c Merge 1e60b12983 into 4bceb85cbf Demis Palma ツ 2017-03-21 14:43:27 +0000
  • f03e817f66 Merge dc12174ac8 into 4bceb85cbf Steve Faulkner 2017-03-21 07:25:29 +0000
  • 4bceb85cbf throw parse error on invalid assignments (#1627) Alex Lam S.L 2017-03-21 14:11:32 +0800
  • f2891c23cd throw parse error on invalid assignments kzc 2017-03-21 13:19:01 +0800
  • 7906033e82 Merge pull request #1624 from alexlamsl/harmony-v2.8.14 harmony-v2.8.14 Alex Lam S.L 2017-03-19 18:24:29 +0800
  • 4bf21ce5c1 add expect_stdout to tests alexlamsl 2017-03-19 15:35:39 +0800
  • 44d6b47bdc Merge branch 'master' into harmony-v2.8.14 alexlamsl 2017-03-19 15:31:18 +0800
  • 30a75049f5 v2.8.14 v2.8.14 Alex Lam S.L 2017-03-19 15:24:57 +0800
  • a3cc3a9b87 make expect_stdout work on Node.js 0.12 (#1623) Alex Lam S.L 2017-03-19 12:00:32 +0800
  • 96f8befdd7 fix commit 88fb83a (#1622) Alex Lam S.L 2017-03-19 11:59:42 +0800
  • 29f8ed3ef7 fix commit 88fb83a The following is wrong: a == (b ? a : c) => b Because: - b may not be boolean - a might have side effects - a == a is not always true (think NaN) - a == c is not always false alexlamsl 2017-03-19 05:33:34 +0800
  • 37ae10b4c4 modify test to utilise expect_stdout alexlamsl 2017-03-19 05:26:51 +0800
  • d315cb6772 make expect_stdout work on Node.js 0.12 That particular version of Node.js has messed up error messages, so provide a version-specific workaround. alexlamsl 2017-03-19 05:14:47 +0800
  • cd58635dcc fix AST_Binary.lift_sequences() (#1621) Alex Lam S.L 2017-03-19 03:04:22 +0800
  • 274331d0ea transform String.charAt() to index access (#1620) Alex Lam S.L 2017-03-19 02:17:15 +0800
  • f8769811c3 fix AST_Binary.lift_sequences() Commit eab99a1c fails to account for side effects from compound assignments. alexlamsl 2017-03-19 01:20:15 +0800
  • 2a742ad342 add noop tests alexlamsl 2017-03-19 01:25:00 +0800
  • 59be354155 transform String.charAt() to index access Guarded by unsafe as charAt() can be overridden. alexlamsl 2017-03-18 18:09:17 +0800
  • 129e449c8e Merge pull request #1614 from alexlamsl/harmony-v2.8.13 harmony-v2.8.13 Alex Lam S.L 2017-03-18 13:02:09 +0800
  • 75c3c8963f Merge branch 'master' into harmony-v2.8.13 alexlamsl 2017-03-18 02:52:45 +0800
  • 0489d6de64 handle runtime errors in expect_stdout (#1618) Alex Lam S.L 2017-03-18 02:33:51 +0800
  • fb092839c2 fix top-level directives in compress tests (#1615) Alex Lam S.L 2017-03-18 01:56:15 +0800
  • d26b7522d9 Allow 'name' as object literal shorthand property (#1617) Alex Zaworski 2017-03-17 10:29:13 -0700
  • add41c371a handle runtime errors in expect_stdout allow test to pass if both input and expect throws the same kind of error alexlamsl 2017-03-18 01:10:44 +0800
  • fbb560234b fix top-level directives in compress tests input and expect are parsed as AST_BlockStatement which does not support AST_Directive by default. alexlamsl 2017-03-17 16:44:21 +0800
  • c49a3f3941 Allow 'name' as object literal shorthand property (closes #1613) Alex Zaworski 2017-03-17 09:37:19 -0700
  • b7c112eefe Add --in-source-map inline documentation (#1611) Christian Maughan Tegnér 2017-03-16 20:08:38 +0100
  • 352bdaecb6 fix merge pborunda 2017-03-16 11:28:32 -0700
  • af167f0ede Merge remote-tracking branch 'refs/remotes/mishoo/master' pborunda 2017-03-16 11:13:31 -0700
  • 16cb4e0922 Merge remote-tracking branch 'refs/remotes/mishoo/master' pborunda 2017-03-16 11:07:47 -0700
  • b2b8a0d386 v2.8.13 v2.8.13 Alex Lam S.L 2017-03-17 02:01:33 +0800