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

Issue 15957006: Add --version option to dart2js and add version information (if available) to generated code. (Closed)

Created:
7 years, 6 months ago by kasperl
Modified:
7 years, 6 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add --version option to dart2js and add version information (if available) to generated code. Remove the 'Using snapshot ...' comment from sdk/bin/dart2js since we are now relatively sure it works. R=ahe@google.com, ngeoffray@google.com BUG=http://dartbug.com/4439, http://dartbug.com/9848 Committed: https://code.google.com/p/dart/source/detail?r=23355

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review feedback. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -16 lines) Patch
M sdk/bin/dart2js View 1 chunk +0 lines, -3 lines 0 comments Download
M sdk/bin/dart2js.bat View 1 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 5 chunks +21 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 4 chunks +8 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
kasperl
7 years, 6 months ago (2013-05-29 13:47:35 UTC) #1
ngeoffray
LGTM https://codereview.chromium.org/15957006/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/15957006/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode3192 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:3192: : ' version: $BUILD_ID'; Add a '.' at ...
7 years, 6 months ago (2013-05-29 13:56:40 UTC) #2
kasperl
https://codereview.chromium.org/15957006/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/15957006/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode3192 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:3192: : ' version: $BUILD_ID'; On 2013/05/29 13:56:40, ngeoffray wrote: ...
7 years, 6 months ago (2013-05-29 14:01:31 UTC) #3
aam-me
Hi Kasper, - # TODO(ahe): Remove the following line when we are relatively sure it ...
7 years, 6 months ago (2013-05-29 15:04:09 UTC) #4
ahe
LGTM! I'd add a period after the version number.
7 years, 6 months ago (2013-05-29 15:18:10 UTC) #5
kasperl
On 2013/05/29 15:18:10, ahe wrote: > LGTM! > > I'd add a period after the ...
7 years, 6 months ago (2013-05-29 16:54:44 UTC) #6
kasperl
Committed patchset #2 manually as r23355 (presubmit successful).
7 years, 6 months ago (2013-05-29 17:01:17 UTC) #7
ahe
7 years, 6 months ago (2013-05-29 17:36:54 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/15957006/diff/7001/sdk/lib/_internal/compiler...
File sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart
(right):

https://codereview.chromium.org/15957006/diff/7001/sdk/lib/_internal/compiler...
sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart:16: import
'../dart2js.dart' show BUILD_ID;
How did I overlook this :-)

Get the version from the compiler object: compiler.buildId.

Powered by Google App Engine
This is Rietveld 408576698