Commit Graph

  • 9a629abe00 minor Mihai Bazon 2012-09-11 18:37:08 +03:00
  • 8e82d8d94c fixed some mess with symbols/scope Mihai Bazon 2012-09-11 15:42:28 +03:00
  • da407d46c6 checkpoint Mihai Bazon 2012-09-11 13:15:55 +03:00
  • 1579c0fb97 hoist_vars is pretty bad, it seems. cancelled it for now. Mihai Bazon 2012-09-10 22:40:18 +03:00
  • 6b9aeb5325 adaptive base54 digits depending on char frequency (WIP) Mihai Bazon 2012-09-10 18:25:52 +03:00
  • a41e6cfabb more progress on the compressor (WIP) Mihai Bazon 2012-09-10 15:54:17 +03:00
  • 16b12c6287 fix "file" in the source map Mihai Bazon 2012-09-10 15:52:53 +03:00
  • 1c8ba35844 minor Mihai Bazon 2012-09-08 17:03:09 +03:00
  • 5a8e6ce735 fix output for division followed by regexp Mihai Bazon 2012-09-08 15:38:58 +03:00
  • 43c75c9248 checkpoint Mihai Bazon 2012-09-07 18:55:13 +03:00
  • 048d6906ae fix bug (forgot arg name) Mihai Bazon 2012-09-07 16:02:08 +03:00
  • 919b2733ab always keep declarations found in unreachable code Mihai Bazon 2012-09-07 15:18:32 +03:00
  • b77574ea1c fixed tests (need to drop the toplevel block in "expected" if it's a single statement) Mihai Bazon 2012-09-07 11:22:01 +03:00
  • 9bb1a84d6b don't duplicate argument names Mihai Bazon 2012-09-05 18:19:30 +03:00
  • 0afafe64fc declared --stats as boolean Mihai Bazon 2012-09-05 18:19:24 +03:00
  • c7b484b64f fix for variable names like toString Mihai Bazon 2012-09-05 14:31:05 +03:00
  • 0503513dcc support for hoisting declarations Mihai Bazon 2012-09-05 13:43:34 +03:00
  • 8633b0073f cleaned up usage of AST_BlockStatement Mihai Bazon 2012-09-05 11:31:02 +03:00
  • 1b5183dd5e checkpoint Mihai Bazon 2012-09-04 15:36:14 +03:00
  • 376667a818 more fiddling with boolean expressions, etc. Mihai Bazon 2012-09-04 13:20:28 +03:00
  • 3459c40cf9 if present, the else in an if should always be forced statement Mihai Bazon 2012-09-04 13:17:13 +03:00
  • 86cfb5be86 boolean and if/exit optimizations Mihai Bazon 2012-09-03 23:49:57 +03:00
  • e5f1cec6aa minor Mihai Bazon 2012-09-03 19:43:46 +03:00
  • 37eecc16a4 more optimizations for ifs/conditionals Mihai Bazon 2012-09-03 19:38:45 +03:00
  • f03138daa8 resolve constant expressions Mihai Bazon 2012-09-03 15:47:15 +03:00
  • f702264617 jumps, try and definitions are statements too Mihai Bazon 2012-09-03 12:39:02 +03:00
  • 6d0db4ce14 an AST_If is too a StatementWithBody Mihai Bazon 2012-09-03 12:11:44 +03:00
  • d7c1dc6c05 a LabeledStatement should be in fact a StatementWithBody Mihai Bazon 2012-09-03 12:05:10 +03:00
  • d6efa8b28d declare boolean options Mihai Bazon 2012-09-03 12:03:45 +03:00
  • 66c869c8f6 switch branches must be declared required so that the compressor doesn't replace nodes with a single statement. Mihai Bazon 2012-09-03 11:05:59 +03:00
  • 1bf5928b54 Reverting "minor perf. improvements" Revert "minor perf. improvements" Mihai Bazon 2012-09-03 10:26:23 +03:00
  • 596af60587 add -b Mihai Bazon 2012-09-03 10:14:15 +03:00
  • f2f370cee3 add source mappings for more node types; started CLI utility Mihai Bazon 2012-09-02 14:32:00 +03:00
  • 24bfd55a22 minor perf. improvements Mihai Bazon 2012-09-02 11:11:39 +03:00
  • 52bcca288f started support for generating source maps (WIP) Mihai Bazon 2012-08-29 19:39:19 +03:00
  • 48440dc250 don't mangle names of setters/getters Mihai Bazon 2012-08-29 19:26:48 +03:00
  • 6569e66bf8 update with link to discussion about Esprima vs. UglifyJS speed Mihai Bazon 2012-08-29 11:18:05 +03:00
  • 86cff2029f docstring for AST_StatementWithBody Mihai Bazon 2012-08-28 15:39:53 +03:00
  • 1b6bcca717 fix output for arrays containing undefined values Mihai Bazon 2012-08-28 15:38:35 +03:00
  • 7fcb6bcb12 fix code generator for this case: Mihai Bazon 2012-08-28 15:29:58 +03:00
  • ce8e8d57c0 added README Mihai Bazon 2012-08-27 12:29:53 +03:00
  • bf70205b15 minor Mihai Bazon 2012-08-27 11:48:07 +03:00
  • 58a3b5e93f update (c) years Mihai Bazon 2012-08-27 11:01:27 +03:00
  • 8dfa9fe7e5 minor Mihai Bazon 2012-08-27 11:00:26 +03:00
  • 4437e7af19 fix compressing a,b; return c; into return a,b,c; Mihai Bazon 2012-08-27 11:00:22 +03:00
  • a8e49f1536 added print_to_string helper method Mihai Bazon 2012-08-27 10:59:33 +03:00
  • 8d233c38d4 fix current_col and force a newline every 32K (support options.max_line_len) Mihai Bazon 2012-08-23 10:39:33 +03:00
  • 95b18e54a4 added license Mihai Bazon 2012-08-22 21:28:59 +03:00
  • 159a6f048c wrote more of the compressor and added some tests Mihai Bazon 2012-08-22 15:21:58 +03:00
  • f53e139d3c fix output for certain edge cases Mihai Bazon 2012-08-22 13:20:05 +03:00
  • fb8c9e3a48 declare some properties in the node constructor so that they're copied in clone Mihai Bazon 2012-08-21 20:06:57 +03:00
  • 1b839eb35b hint that brackets may be required in AST_BlockStatement Mihai Bazon 2012-08-21 16:27:57 +03:00
  • ffe58a9961 cleaned up some mess and started the actual compressor Mihai Bazon 2012-08-21 15:45:05 +03:00
  • 7ae1c600a2 some reorganization Mihai Bazon 2012-08-21 12:55:56 +03:00
  • 92bd53b513 handle labels properly Mihai Bazon 2012-08-21 12:37:05 +03:00
  • 159333f4c5 warn about unreferenced symbols Mihai Bazon 2012-08-21 11:53:19 +03:00
  • 99456c6156 more fixes: Mihai Bazon 2012-08-21 11:38:49 +03:00
  • 458e251d7e added mangler and other stuff Mihai Bazon 2012-08-20 17:19:30 +03:00
  • 1fe0ff9fff doc (WIP) Mihai Bazon 2012-08-19 22:46:00 +03:00
  • 6c35135ace simple visitor API and code to figure out scope and references Mihai Bazon 2012-08-19 15:57:50 +03:00
  • 4488758d48 some fixes (need testing) in AST_If codegen Mihai Bazon 2012-08-18 12:29:57 +03:00
  • cd8ae5f712 minor whitespace issues Mihai Bazon 2012-08-17 23:08:09 +03:00
  • ef87c9fd8f big speed improvement (observable when beautify = false) Mihai Bazon 2012-08-17 19:04:23 +03:00
  • 901f77047e don't output both space and semicolon when beautify=false Mihai Bazon 2012-08-17 18:33:26 +03:00
  • 07cbc8d3af added some comments about the rules governing parens Mihai Bazon 2012-08-17 17:56:16 +03:00
  • 4fb6021b0b fix one more glitch Mihai Bazon 2012-08-17 16:27:43 +03:00
  • 13f7b119bb code generator finally seems to work properly Mihai Bazon 2012-08-17 15:59:42 +03:00
  • c7c163b82e lots'o'fixes in the output routines; still a looong way to go. Mihai Bazon 2012-08-16 19:54:37 +03:00
  • 7f273c3b89 codegen and dropped the useless walker Mihai Bazon 2012-08-16 18:11:04 +03:00
  • c0ba9e2986 WIP Mihai Bazon 2012-08-15 13:32:37 +03:00
  • 861e26a666 WIP Mihai Bazon 2012-05-27 17:25:31 +03:00
  • 22bb5e8306 added small node test script Mihai Bazon 2012-05-27 14:36:51 +03:00
  • 46e7507b44 Fixes some gotchas. Mihai Bazon 2012-05-27 14:36:44 +03:00
  • 562b12f021 init repo Mihai Bazon 2012-05-27 14:09:01 +03:00