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

Issue 1198293002: dart2js: Use an abstract Name class for names in the generated JavaScript ast. (Closed)

Created:
5 years, 6 months ago by herhut
Modified:
5 years, 6 months ago
Reviewers:
asgerf, floitsch, sra1, sigurdm
CC:
reviews_dartlang.org, ahe
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js: Use an abstract Name class for names in the generated JavaScript ast. BUG= R=asgerf@google.com, floitsch@google.com, sigurdm@google.com, sra@google.com Committed: https://github.com/dart-lang/sdk/commit/dd41983945b4ccbae5f4670c6235265444a16c31

Patch Set 1 : #

Patch Set 2 : Fix new emitter. #

Total comments: 67

Patch Set 3 : Comments #

Total comments: 9

Patch Set 4 : Comments from sra #

Patch Set 5 : Async naming fix #

Patch Set 6 : REBASE #

Patch Set 7 : fix tests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1172 lines, -771 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 2 3 4 5 6 4 chunks +11 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js/rewrite_async.dart View 11 chunks +19 lines, -14 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 4 5 6 chunks +8 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/checked_mode_helpers.dart View 2 chunks +6 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 5 6 6 chunks +9 lines, -7 lines 1 comment Download
M pkg/compiler/lib/src/js_backend/codegen/glue.dart View 1 2 3 4 5 5 chunks +7 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_emitter.dart View 6 chunks +8 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_system_javascript.dart View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/js_backend.dart View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/minify_namer.dart View 1 2 3 4 13 chunks +28 lines, -27 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/namer.dart View 1 2 3 4 5 6 39 chunks +369 lines, -123 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/class_stub_generator.dart View 1 2 3 4 5 9 chunks +18 lines, -16 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/code_emitter_task.dart View 2 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/js_emitter.dart View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/model.dart View 1 16 chunks +28 lines, -26 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/native_emitter.dart View 2 chunks +11 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart View 2 chunks +5 lines, -21 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart View 1 2 15 chunks +39 lines, -39 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/class_builder.dart View 2 chunks +24 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart View 1 2 17 chunks +41 lines, -34 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart View 1 2 4 chunks +17 lines, -15 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 3 4 5 27 chunks +80 lines, -81 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart View 1 2 4 chunks +17 lines, -15 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart View 1 2 3 4 5 10 chunks +158 lines, -115 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder.dart View 1 2 3 4 5 16 chunks +27 lines, -27 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart View 4 chunks +5 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 3 4 5 10 chunks +22 lines, -21 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 2 3 4 5 11 chunks +23 lines, -19 lines 0 comments Download
M pkg/compiler/lib/src/ssa/nodes.dart View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/types/constants.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/js_ast/lib/src/builder.dart View 1 2 chunks +20 lines, -4 lines 0 comments Download
M pkg/js_ast/lib/src/nodes.dart View 1 2 3 chunks +26 lines, -0 lines 0 comments Download
M pkg/js_ast/lib/src/printer.dart View 3 chunks +12 lines, -0 lines 0 comments Download
M pkg/js_ast/lib/src/template.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_mirrors.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart View 2 chunks +11 lines, -17 lines 0 comments Download
M tests/compiler/dart2js/async_await_js_transform_test.dart View 53 chunks +74 lines, -73 lines 0 comments Download
M tests/compiler/dart2js/interceptor_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mirrors_used_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js/static_closure_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (3 generated)
herhut
PTAL sra: the js_ast package sigurdm: the async translation floitsch: rest?
5 years, 6 months ago (2015-06-22 11:47:14 UTC) #2
sigurdm
Async-part: LGTM
5 years, 6 months ago (2015-06-22 11:52:51 UTC) #4
floitsch
LGTM. @Peter: could you please have a look at nsm_emitter.dart? https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart File pkg/compiler/lib/src/js_backend/codegen/codegen.dart (right): https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart#newcode237 ...
5 years, 6 months ago (2015-06-22 17:43:45 UTC) #5
sra1
https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/namer.dart File pkg/compiler/lib/src/js_backend/namer.dart (right): https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/namer.dart#newcode782 pkg/compiler/lib/src/js_backend/namer.dart:782: return new SetterName(new StringBackedName(setterPrefix), The prefix should probably be ...
5 years, 6 months ago (2015-06-23 04:47:54 UTC) #6
herhut
sra@ PTAL https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart File pkg/compiler/lib/src/js_backend/codegen/codegen.dart (right): https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart#newcode237 pkg/compiler/lib/src/js_backend/codegen/codegen.dart:237: return js.propertyCall(interceptorLibrary, js.string(selector.name), On 2015/06/22 17:43:43, floitsch ...
5 years, 6 months ago (2015-06-23 13:26:32 UTC) #7
asgerf
https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart File pkg/compiler/lib/src/js_backend/codegen/codegen.dart (right): https://codereview.chromium.org/1198293002/diff/40001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart#newcode237 pkg/compiler/lib/src/js_backend/codegen/codegen.dart:237: return js.propertyCall(interceptorLibrary, js.string(selector.name), On 2015/06/23 13:26:30, herhut wrote: > ...
5 years, 6 months ago (2015-06-23 13:34:54 UTC) #9
floitsch
https://codereview.chromium.org/1198293002/diff/60001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://codereview.chromium.org/1198293002/diff/60001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode150 sdk/lib/_internal/compiler/js_lib/js_helper.dart:150: JsBuiltin.isGivenTypeRti, Actually you might as well use rawRtiToJsConstructorName from ...
5 years, 6 months ago (2015-06-23 14:59:33 UTC) #10
sra1
lgtm https://codereview.chromium.org/1198293002/diff/60001/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart (right): https://codereview.chromium.org/1198293002/diff/60001/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart#newcode161 pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart:161: diffEncodedString = sequence[0]; Move under 'if (sequence.length)'. If ...
5 years, 6 months ago (2015-06-23 20:54:16 UTC) #11
herhut
https://codereview.chromium.org/1198293002/diff/60001/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart (right): https://codereview.chromium.org/1198293002/diff/60001/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart#newcode161 pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart:161: diffEncodedString = sequence[0]; On 2015/06/23 20:54:16, sra1 wrote: > ...
5 years, 6 months ago (2015-06-24 07:55:07 UTC) #12
herhut
sigurdm@ PTAL patchset 6
5 years, 6 months ago (2015-06-24 14:11:22 UTC) #13
herhut
On 2015/06/24 14:11:22, herhut wrote: > sigurdm@ PTAL patchset 6 make that patchset 5...
5 years, 6 months ago (2015-06-24 14:11:56 UTC) #14
sigurdm
Patch 5 async-related parts LGTM. Thanks for the fix!
5 years, 6 months ago (2015-06-24 14:35:21 UTC) #15
sigurdm
Patch 5 async-related parts LGTM. Thanks for the fix!
5 years, 6 months ago (2015-06-24 14:35:24 UTC) #16
herhut
asgerf@ PTAL the cps_ir changes due to merging. In essence I need to construct the ...
5 years, 6 months ago (2015-06-24 15:49:05 UTC) #17
asgerf
CPS builder and tree codegen LGTM. https://codereview.chromium.org/1198293002/diff/140001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart File pkg/compiler/lib/src/js_backend/codegen/codegen.dart (right): https://codereview.chromium.org/1198293002/diff/140001/pkg/compiler/lib/src/js_backend/codegen/codegen.dart#newcode211 pkg/compiler/lib/src/js_backend/codegen/codegen.dart:211: arguments); Don't worry ...
5 years, 6 months ago (2015-06-24 15:59:55 UTC) #18
herhut
5 years, 6 months ago (2015-06-25 07:40:03 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 (id:140001) manually as
dd41983945b4ccbae5f4670c6235265444a16c31 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698