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

Issue 1271953003: dart2js: Add a header to the output of the startup emitter. (Closed)

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

Description

dart2js: Add a header to the output of the startup emitter. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/7e9fcbf5d6942ef14a287984ee72207469f34943

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add flavor section to generatedBy comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -38 lines) Patch
M pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart View 1 chunk +0 lines, -22 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart View 1 2 chunks +6 lines, -5 lines 0 comments Download
A pkg/compiler/lib/src/js_emitter/headers.dart View 1 1 chunk +32 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart View 1 4 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
floitsch
https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart File pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart (left): https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart#oldcode16 pkg/compiler/lib/src/js_emitter/full_emitter/declarations.dart:16: const String GENERATED_BY = """ Moved. https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart File pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart ...
5 years, 4 months ago (2015-08-04 15:06:38 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart File pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart (right): https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart#newcode223 pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart:223: return new jsAst.Comment(generatedBy(compiler)); should we add an argument ...
5 years, 4 months ago (2015-08-04 16:42:48 UTC) #3
floitsch
I'm committing already (because of the merge-to-dev that is happening soon), but, as usual, I ...
5 years, 4 months ago (2015-08-05 11:46:50 UTC) #4
floitsch
Committed patchset #2 (id:20001) manually as 7e9fcbf5d6942ef14a287984ee72207469f34943 (presubmit successful).
5 years, 4 months ago (2015-08-05 11:47:43 UTC) #5
Siggi Cherem (dart-lang)
lgtm
5 years, 4 months ago (2015-08-05 15:51:02 UTC) #6
Siggi Cherem (dart-lang)
5 years, 4 months ago (2015-08-05 15:53:36 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emi...
File pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart (right):

https://codereview.chromium.org/1271953003/diff/1/pkg/compiler/lib/src/js_emi...
pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart:223: return
new jsAst.Comment(generatedBy(compiler));
On 2015/08/05 11:46:50, floitsch wrote:
> On 2015/08/04 16:42:48, Siggi Cherem (dart-lang) wrote:
> > should we add an argument to generatedBy so we can indicate which emitter we
> > used? (we used to have the "(fast startup)" as part of this header before).
> > Another idea is to print out all the flags/options in the header.
> 
> I added a 'flavor' argument to 'generatedBy'. That should bring us back to
what
> we had before. (Even more, since I take mirrors and CSP into account).
> I think we don't want to print *all* options, but it is an option, and I
> wouldn't be entirely against it. Up to you.

I have a feeling that all flags might be too noisy too, but there might be some
others for which it may be useful (e.g. trust-type-annotations). We don't need
to add them now.

Powered by Google App Engine
This is Rietveld 408576698