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

Issue 656043003: dart2js: restructure emitter. (Closed)

Created:
6 years, 2 months ago by floitsch
Modified:
6 years, 2 months ago
Reviewers:
Johnni Winther
CC:
reviews_dartlang.org, kasperl
Visibility:
Public.

Description

dart2js: restructure emitter. Collect information before hand, and then emit output units in one go. First emit the deferred units since we need their hashes in the main unit. There is still code that collects the output-unit of the emitted element, even though we know that it should/must be in the current output-unit. That code can be cleaned up in a later CL. We should not need to look up the output unit for any element in the old-emitter anymore. R=johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=41142

Patch Set 1 #

Patch Set 2 : emitLibraries only. #

Patch Set 3 : emitTypedefs only. #

Patch Set 4 : emitMangledNames only. #

Patch Set 5 : checkEverythingEmitted only. #

Patch Set 6 : emitMainOutputUnit only. #

Patch Set 7 : emitDeferredOutputUnits only. #

Patch Set 8 : buildNativesBuffer only. #

Patch Set 9 : Full diff #

Total comments: 8

Patch Set 10 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -245 lines) Patch
M pkg/dart2js_incremental/lib/caching_compiler.dart View 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart View 1 2 3 4 5 6 7 8 9 4 chunks +43 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/class_emitter.dart View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart View 1 2 3 4 5 6 7 8 9 17 chunks +268 lines, -236 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
floitsch
I tried to upload patches for the individual functions, but not all of them make ...
6 years, 2 months ago (2014-10-15 10:32:10 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/656043003/diff/160001/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart File sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart (right): https://codereview.chromium.org/656043003/diff/160001/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart#newcode33 sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:33: /// True, if the output contains a constant ...
6 years, 2 months ago (2014-10-16 08:04:50 UTC) #3
floitsch
https://codereview.chromium.org/656043003/diff/160001/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart File sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart (right): https://codereview.chromium.org/656043003/diff/160001/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart#newcode33 sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:33: /// True, if the output contains a constant list. ...
6 years, 2 months ago (2014-10-16 11:53:36 UTC) #4
floitsch
6 years, 2 months ago (2014-10-16 11:54:03 UTC) #5
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as 41142 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698