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

Issue 1140703006: dart2js: Construct the entire output as a single AST before printing. (Closed)

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

Description

dart2js: Construct the entire output as a single AST before printing. BUG= R=floitsch@google.com, sra@google.com Committed: https://github.com/dart-lang/sdk/commit/03917ffe4d249b4cbd92d970ce859a0d53172f63

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Florian's comments #

Total comments: 6

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -466 lines) Patch
M pkg/compiler/lib/src/js_backend/constant_emitter.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 1 1 chunk +5 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 36 chunks +423 lines, -424 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart View 3 chunks +23 lines, -23 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M pkg/dart2js_incremental/lib/caching_compiler.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/js_ast/lib/src/builder.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M pkg/js_ast/lib/src/printer.dart View 1 2 chunks +13 lines, -1 line 0 comments Download
M pkg/js_ast/lib/src/template.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
herhut
@sra: PTAL the js_ast implementation. This should be a non-breaking change. @floitsch: PTAL the emitter ...
5 years, 7 months ago (2015-05-19 13:14:29 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode553 pkg/compiler/lib/src/js_backend/runtime_types.dart:553: jsAst.Expression getTypeRepresentationWithHashes(DartType type, Name is bad now. https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ...
5 years, 7 months ago (2015-05-19 13:43:35 UTC) #4
herhut
Now just waiting for sra@ OK. https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart File pkg/compiler/lib/src/js_backend/runtime_types.dart (right): https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_backend/runtime_types.dart#newcode553 pkg/compiler/lib/src/js_backend/runtime_types.dart:553: jsAst.Expression getTypeRepresentationWithHashes(DartType type, ...
5 years, 7 months ago (2015-05-19 14:08:09 UTC) #5
floitsch
https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart (right): https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart#newcode525 pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart:525: return js.statement('${namer.currentIsolate}.# = #', On 2015/05/19 14:08:09, herhut wrote: ...
5 years, 7 months ago (2015-05-19 14:15:28 UTC) #6
floitsch
https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart (right): https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart#newcode525 pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart:525: return js.statement('${namer.currentIsolate}.# = #', On 2015/05/19 14:15:28, floitsch wrote: ...
5 years, 7 months ago (2015-05-19 14:16:50 UTC) #7
sra1
lgtm with fixes to call 'new Template(...)' or a new constructor. https://codereview.chromium.org/1140703006/diff/40001/pkg/js_ast/lib/src/template.dart File pkg/js_ast/lib/src/template.dart (right): ...
5 years, 7 months ago (2015-05-19 20:56:55 UTC) #8
herhut
https://codereview.chromium.org/1140703006/diff/40001/pkg/js_ast/lib/src/template.dart File pkg/js_ast/lib/src/template.dart (right): https://codereview.chromium.org/1140703006/diff/40001/pkg/js_ast/lib/src/template.dart#newcode58 pkg/js_ast/lib/src/template.dart:58: {this.isExpression: true, this.forceCopy: false}) { On 2015/05/19 20:56:55, sra1 ...
5 years, 7 months ago (2015-05-20 08:09:16 UTC) #9
herhut
On 2015/05/19 14:16:50, floitsch wrote: > https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart > File pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart (right): > > https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart#newcode525 > ...
5 years, 7 months ago (2015-05-20 08:11:56 UTC) #10
herhut
On 2015/05/20 08:11:56, herhut wrote: > On 2015/05/19 14:16:50, floitsch wrote: > > > https://codereview.chromium.org/1140703006/diff/20001/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ...
5 years, 7 months ago (2015-05-20 10:31:21 UTC) #11
herhut
5 years, 7 months ago (2015-05-20 10:31:50 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
03917ffe4d249b4cbd92d970ce859a0d53172f63 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698