Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 1633003002: Add --modules=node support (Closed)

Created:
4 years, 11 months ago by ochafik
Modified:
4 years, 10 months ago
Reviewers:
vsm, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org, Jacob, devoncarew
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add --modules=node support - Force import order in all sdk files + simplify module builders - Stub a node_test.sh with hello world + DeltaBlue (to be expanded to language tests in a followup change) - Use global_ from dart:_runtime in html lib - Better export for symbols that node chokes upon: throw, const, void, implements, export... (define as throw_ locally, with proper local resolution, then export as throw). - Cleanup node module builder BUG= R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/393c2b3b7212f94e629ed47e0a64b4183ee5a79f

Patch Set 1 #

Patch Set 2 : reformat #

Patch Set 3 : regen sdk and expectations #

Total comments: 20

Patch Set 4 : rebased #

Patch Set 5 : rebase #

Patch Set 6 : applied comments #

Patch Set 7 : fix path handling of html libs #

Patch Set 8 : rebased #

Patch Set 9 : reverted let->const parasite change #

Total comments: 16

Patch Set 10 : nits #

Patch Set 11 : merged master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1406 lines, -227 lines) Patch
M .travis.yml View 1 2 3 4 5 6 8 1 chunk +1 line, -0 lines 0 comments Download
M lib/runtime/dart/_debugger.js View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -11 lines 0 comments Download
M lib/runtime/dart/_js_mirrors.js View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -5 lines 0 comments Download
M lib/runtime/dart/_runtime.js View 1 2 3 4 5 6 7 8 9 33 chunks +50 lines, -50 lines 0 comments Download
M lib/runtime/dart/html.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -4 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 2 3 4 5 6 7 8 9 10 11 chunks +51 lines, -12 lines 0 comments Download
M lib/src/codegen/module_builder.dart View 1 2 3 4 5 6 7 8 9 8 chunks +58 lines, -16 lines 0 comments Download
M lib/src/compiler.dart View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -1 line 0 comments Download
M lib/src/options.dart View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M test/browser/runtime_tests.js View 1 2 3 4 5 6 8 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/collection/equality.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M test/codegen/expect/collection/src/canonicalized_map.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -8 lines 0 comments Download
M test/codegen/expect/collection/src/canonicalized_map.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M test/codegen/expect/collection/src/queue_list.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -8 lines 0 comments Download
A test/codegen/expect/collection/src/unmodifiable_wrappers.js View 1 2 3 4 5 6 7 8 1 chunk +229 lines, -0 lines 0 comments Download
M test/codegen/expect/collection/src/unmodifiable_wrappers.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -6 lines 0 comments Download
A test/codegen/expect/collection/wrappers.js View 1 2 3 4 5 6 7 8 1 chunk +809 lines, -0 lines 0 comments Download
M test/codegen/expect/html_input.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/language-all.js View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A + test/codegen/expect/node_modules.js View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
A test/codegen/expect/node_modules.txt View 1 2 3 4 5 6 8 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A + test/codegen/node_modules.dart View 1 2 3 4 5 6 8 0 chunks +-1 lines, --1 lines 0 comments Download
M test/codegen_test.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M tool/input_sdk/lib/html/ddc/html_ddc.dart View 1 2 3 4 5 6 7 8 9 10 13 chunks +26 lines, -26 lines 0 comments Download
M tool/input_sdk/lib/html/html_common/html_common_ddc.dart View 3 4 5 6 8 1 chunk +0 lines, -1 line 0 comments Download
M tool/input_sdk/private/debugger.dart View 3 4 5 6 8 4 chunks +8 lines, -8 lines 0 comments Download
M tool/input_sdk/private/js_mirrors.dart View 3 4 5 6 8 1 chunk +0 lines, -1 line 0 comments Download
M tool/input_sdk/private/runtime.dart View 3 4 5 6 8 1 chunk +2 lines, -1 line 0 comments Download
M tool/input_sdk/private/types.dart View 1 2 3 4 5 6 8 1 chunk +0 lines, -1 line 0 comments Download
A tool/node_test.sh View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
M tool/presubmit.sh View 1 3 4 5 6 8 1 chunk +1 line, -0 lines 0 comments Download
M tool/sdk_expected_errors.txt View 1 2 3 4 5 6 7 8 9 10 3 chunks +57 lines, -57 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
ochafik
Hey guys, --module=node is alive! Next task will be to checkin multiple runtimes, add language ...
4 years, 11 months ago (2016-01-26 09:16:28 UTC) #7
vsm
nice! https://codereview.chromium.org/1633003002/diff/100001/lib/src/codegen/module_builder.dart File lib/src/codegen/module_builder.dart (right): https://codereview.chromium.org/1633003002/diff/100001/lib/src/codegen/module_builder.dart#newcode166 lib/src/codegen/module_builder.dart:166: // js.statement("console.log('Loading ' + #);", [js.string(jsPath)]) Remove? https://codereview.chromium.org/1633003002/diff/100001/lib/src/codegen/module_builder.dart#newcode171 ...
4 years, 11 months ago (2016-01-26 14:09:41 UTC) #10
ochafik
Thanks Vijay! https://codereview.chromium.org/1633003002/diff/100001/lib/src/codegen/module_builder.dart File lib/src/codegen/module_builder.dart (right): https://codereview.chromium.org/1633003002/diff/100001/lib/src/codegen/module_builder.dart#newcode166 lib/src/codegen/module_builder.dart:166: // js.statement("console.log('Loading ' + #);", [js.string(jsPath)]) On ...
4 years, 11 months ago (2016-01-26 16:27:37 UTC) #11
ochafik
Thanks Vijay!
4 years, 10 months ago (2016-01-28 22:50:35 UTC) #12
Jennifer Messerly
LGTM. Only slight concern is js_names. Otherwise is great. Does the import order thing work? ...
4 years, 10 months ago (2016-01-29 00:32:32 UTC) #13
ochafik
Thanks John! https://codereview.chromium.org/1633003002/diff/170001/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1633003002/diff/170001/lib/src/codegen/js_codegen.dart#newcode192 lib/src/codegen/js_codegen.dart:192: moduleBuilder.addImport(getCorelibModuleName(lib), null); On 2016/01/29 00:32:31, John Messerly ...
4 years, 10 months ago (2016-01-29 09:38:17 UTC) #14
ochafik
FYI: the import order trick worked like a charm, just had to insert those phony ...
4 years, 10 months ago (2016-01-29 09:41:25 UTC) #15
ochafik
4 years, 10 months ago (2016-01-29 10:01:51 UTC) #17
Message was sent while issue was closed.
Committed patchset #11 (id:210001) manually as
393c2b3b7212f94e629ed47e0a64b4183ee5a79f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698