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

Issue 2249233002: fix #626, add AMD module format and make it default (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : fix sunflower #

Total comments: 17

Patch Set 3 : fix tests and other changes #

Total comments: 32

Patch Set 4 : fix #

Patch Set 5 : merged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4081 lines, -3917 lines) Patch
M .gitignore View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M CHANGELOG.md View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M karma.conf.js View 1 2 3 4 1 chunk +7 lines, -16 lines 0 comments Download
A + lib/js/amd/dart_sdk.js View 1 2 3 4 3 chunks +34 lines, -33 lines 0 comments Download
A + lib/js/common/dart_sdk.js View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
A + lib/js/common/run.js View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + lib/js/legacy/dart_library.js View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + lib/js/legacy/dart_sdk.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D lib/runtime/dart_library.js View 1 2 3 4 1 chunk +0 lines, -168 lines 0 comments Download
D lib/runtime/run.js View 1 2 3 4 1 chunk +0 lines, -22 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 2 3 4 18 chunks +41 lines, -58 lines 0 comments Download
M lib/src/compiler/command.dart View 1 2 3 4 5 chunks +23 lines, -15 lines 0 comments Download
M lib/src/compiler/compiler.dart View 1 2 3 4 10 chunks +99 lines, -54 lines 0 comments Download
M lib/src/compiler/module_builder.dart View 1 2 3 4 7 chunks +138 lines, -6 lines 0 comments Download
M lib/src/js_ast/module_transform.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M lib/src/js_ast/nodes.dart View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test-main.js View 1 2 3 4 1 chunk +33 lines, -2 lines 0 comments Download
M test/browser/language_tests.js View 1 2 3 4 23 chunks +17 lines, -2347 lines 0 comments Download
M test/browser/runtime_tests.js View 1 3 4 1 chunk +1059 lines, -1057 lines 0 comments Download
M test/codegen/language/async_await_test.dart View 1 2 3 4 4 chunks +9 lines, -7 lines 0 comments Download
M test/codegen/sunflower/sunflower.html View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
M test/codegen_expected/BenchmarkBase.js View 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M test/codegen_expected/async_helper.js View 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M test/codegen_expected/destructuring.js View 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M test/codegen_expected/expect.js View 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M test/codegen_expected/map_keys.js View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
A test/codegen_expected/map_keys.js.map View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen_expected/script.js View 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M test/codegen_expected/sunflower/sunflower.js View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
A test/codegen_expected/sunflower/sunflower.js.map View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen_expected/varargs.js View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M test/codegen_test.dart View 1 2 3 4 9 chunks +45 lines, -63 lines 0 comments Download
A test/not_yet_strong_tests.dart View 1 2 3 4 1 chunk +2487 lines, -0 lines 0 comments Download
M tool/build_sdk.sh View 1 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M tool/build_test_pkgs.sh View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M tool/input_sdk/private/ddc_runtime/operations.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M web/web_command.dart View 1 2 3 4 4 chunks +12 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Jennifer Messerly
4 years, 4 months ago (2016-08-16 20:49:55 UTC) #3
Jennifer Messerly
BTW, I didn't remove module name yet, but we can totally do that once "legacy" ...
4 years, 4 months ago (2016-08-16 20:50:47 UTC) #4
vsm
nice! Will we be able to just concatenate js files together? If not, what should ...
4 years, 4 months ago (2016-08-16 21:23:23 UTC) #5
Jennifer Messerly
Link step --> whatever you'd use for JS code. There are several options. We aren't ...
4 years, 4 months ago (2016-08-16 21:29:28 UTC) #6
Jennifer Messerly
https://codereview.chromium.org/2249233002/diff/20001/lib/src/compiler/compiler.dart File lib/src/compiler/compiler.dart (right): https://codereview.chromium.org/2249233002/diff/20001/lib/src/compiler/compiler.dart#newcode278 lib/src/compiler/compiler.dart:278: defaultsTo: 'requirejs') On 2016/08/16 21:29:27, John Messerly wrote: > ...
4 years, 4 months ago (2016-08-16 21:34:45 UTC) #7
nweiz
https://codereview.chromium.org/2249233002/diff/20001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2249233002/diff/20001/lib/src/compiler/code_generator.dart#newcode46 lib/src/compiler/code_generator.dart:46: RequireJSModuleBuilder, For what it's worth, despite their names, CommonJS ...
4 years, 4 months ago (2016-08-16 22:14:54 UTC) #8
nweiz
https://codereview.chromium.org/2249233002/diff/20001/lib/src/compiler/module_builder.dart File lib/src/compiler/module_builder.dart (right): https://codereview.chromium.org/2249233002/diff/20001/lib/src/compiler/module_builder.dart#newcode186 lib/src/compiler/module_builder.dart:186: assert(names != null); // export * not supported in ...
4 years, 4 months ago (2016-08-16 22:14:54 UTC) #9
Jennifer Messerly
Thanks for the comments, I'm going to go through them, will let y'all know. Vijay ...
4 years, 4 months ago (2016-08-22 19:50:18 UTC) #10
Jennifer Messerly
Please take another look. In addition to addressing the comments, the big changes are: * ...
4 years, 4 months ago (2016-08-24 22:39:51 UTC) #12
nweiz
A bunch of nits, but otherwise LGTM! https://codereview.chromium.org/2249233002/diff/40001/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2249233002/diff/40001/lib/src/compiler/code_generator.dart#newcode5279 lib/src/compiler/code_generator.dart:5279: // Nit: ...
4 years, 4 months ago (2016-08-24 23:33:26 UTC) #13
vsm
lgtm https://codereview.chromium.org/2249233002/diff/40001/lib/runtime/dart_library.js File lib/runtime/dart_library.js (left): https://codereview.chromium.org/2249233002/diff/40001/lib/runtime/dart_library.js#oldcode1 lib/runtime/dart_library.js:1: // Copyright (c) 2015, the Dart project authors. ...
4 years, 3 months ago (2016-08-25 12:19:24 UTC) #14
Jennifer Messerly
Thanks for the *excellent* comments Natalie & Vijay! I think I got everything, so going ...
4 years, 3 months ago (2016-08-25 16:21:40 UTC) #15
Jennifer Messerly
4 years, 3 months ago (2016-08-25 16:39:42 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:60001) manually as
f39c13e0837e3a884c4309ec18cf36a9d7620dd6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698