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

Issue 582753002: dart2js: add --preserve-uris flag. (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : Update comments in test. #

Total comments: 4

Patch Set 3 : Make hiding the URIs the default. #

Patch Set 4 : minor fixes and add support to pub. #

Total comments: 2

Patch Set 5 : Modify original sources. not the generated ones. #

Patch Set 6 : Update URI. #

Patch Set 7 : Rebase after revert. #

Patch Set 8 : Update test. #

Patch Set 9 : Update tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -19 lines) Patch
M sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_mirrors.dart View 1 2 3 4 5 1 chunk +11 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/dart.dart View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/barback/dart2js_transformer.dart View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/dart.dart View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
A tests/compiler/dart2js/preserve_uris_test.dart View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/uri_retention_test.dart View 1 2 3 4 5 6 7 1 chunk +13 lines, -4 lines 0 comments Download
M tests/lib/mirrors/libraries_test.dart View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -1 line 0 comments Download
M tests/lib/mirrors/library_uri_package_test.dart View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download
M tests/lib/mirrors/mirrors_test.dart View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -1 line 0 comments Download
M tests/lib/mirrors/null_test.dart View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
floitsch
6 years, 3 months ago (2014-09-18 14:48:57 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/582753002/diff/20001/sdk/lib/_internal/compiler/implementation/dart2js.dart File sdk/lib/_internal/compiler/implementation/dart2js.dart (right): https://codereview.chromium.org/582753002/diff/20001/sdk/lib/_internal/compiler/implementation/dart2js.dart#newcode279 sdk/lib/_internal/compiler/implementation/dart2js.dart:279: new OptionHandler('--hide-uris', passThrough), Should we document this is ...
6 years, 3 months ago (2014-09-19 07:54:07 UTC) #3
blois
https://codereview.chromium.org/582753002/diff/20001/tests/compiler/dart2js/hide_uri_test.dart File tests/compiler/dart2js/hide_uri_test.dart (right): https://codereview.chromium.org/582753002/diff/20001/tests/compiler/dart2js/hide_uri_test.dart#newcode52 tests/compiler/dart2js/hide_uri_test.dart:52: Expect.equals(!hideUris, jsOutput.contains("lib.dart")); I'm curious what the output is from ...
6 years, 3 months ago (2014-09-22 21:26:09 UTC) #5
floitsch
https://codereview.chromium.org/582753002/diff/20001/tests/compiler/dart2js/hide_uri_test.dart File tests/compiler/dart2js/hide_uri_test.dart (right): https://codereview.chromium.org/582753002/diff/20001/tests/compiler/dart2js/hide_uri_test.dart#newcode52 tests/compiler/dart2js/hide_uri_test.dart:52: Expect.equals(!hideUris, jsOutput.contains("lib.dart")); On 2014/09/22 21:26:09, blois wrote: > I'm ...
6 years, 3 months ago (2014-09-22 21:28:10 UTC) #6
blois
lgtm- the path appears to be relative 'foo/bar.dart' in the nested case. FWIW, the generated ...
6 years, 3 months ago (2014-09-22 22:41:06 UTC) #7
floitsch
PTAL. I made hiding the default, and added support for pub. https://codereview.chromium.org/582753002/diff/20001/sdk/lib/_internal/compiler/implementation/dart2js.dart File sdk/lib/_internal/compiler/implementation/dart2js.dart (right): ...
6 years, 2 months ago (2014-09-26 12:51:43 UTC) #9
nweiz
What does this flag do? https://codereview.chromium.org/582753002/diff/60001/sdk/lib/_internal/pub_generated/lib/src/dart.dart File sdk/lib/_internal/pub_generated/lib/src/dart.dart (right): https://codereview.chromium.org/582753002/diff/60001/sdk/lib/_internal/pub_generated/lib/src/dart.dart#newcode33 sdk/lib/_internal/pub_generated/lib/src/dart.dart:33: if (preserveUris) options.add('--preserve-uris'); This ...
6 years, 2 months ago (2014-09-26 19:19:38 UTC) #10
floitsch
On 2014/09/26 19:19:38, nweiz wrote: > What does this flag do? See dart2js.dart --preserve-uris Preserve ...
6 years, 2 months ago (2014-09-26 21:25:04 UTC) #11
floitsch
https://codereview.chromium.org/582753002/diff/60001/sdk/lib/_internal/pub_generated/lib/src/dart.dart File sdk/lib/_internal/pub_generated/lib/src/dart.dart (right): https://codereview.chromium.org/582753002/diff/60001/sdk/lib/_internal/pub_generated/lib/src/dart.dart#newcode33 sdk/lib/_internal/pub_generated/lib/src/dart.dart:33: if (preserveUris) options.add('--preserve-uris'); On 2014/09/26 19:19:37, nweiz wrote: > ...
6 years, 2 months ago (2014-09-26 21:25:13 UTC) #12
nweiz
lgtm
6 years, 2 months ago (2014-09-26 21:47:09 UTC) #13
floitsch
Updated URI to point to a site on dartlang.org (which will for now redirect to ...
6 years, 2 months ago (2014-10-02 15:02:24 UTC) #15
ahe
On 2014/10/02 15:02:24, floitsch wrote: > Updated URI to point to a site on http://dartlang.org ...
6 years, 2 months ago (2014-10-02 15:07:12 UTC) #16
floitsch
On 2014/10/02 15:07:12, ahe wrote: > On 2014/10/02 15:02:24, floitsch wrote: > > Updated URI ...
6 years, 2 months ago (2014-10-02 15:09:52 UTC) #17
rhysbrettbowen
On 2014/10/02 15:09:52, floitsch wrote: > On 2014/10/02 15:07:12, ahe wrote: > > On 2014/10/02 ...
6 years, 2 months ago (2014-10-20 16:19:59 UTC) #18
floitsch
Committed patchset #6 (id:100001) manually as 41205 (presubmit successful).
6 years, 2 months ago (2014-10-20 16:33:13 UTC) #19
floitsch
On 2014/10/20 16:33:13, floitsch wrote: > Committed patchset #6 (id:100001) manually as 41205 (presubmit successful). ...
6 years, 2 months ago (2014-10-20 16:42:17 UTC) #20
floitsch
I had to revert. Will debug tomorrow.
6 years, 2 months ago (2014-10-20 16:48:28 UTC) #21
floitsch
Updated tests. PTAL, but will land it TBR.
6 years, 2 months ago (2014-10-22 09:05:01 UTC) #22
floitsch
Committed patchset #9 (id:160001) manually as 41244 (presubmit successful).
6 years, 2 months ago (2014-10-22 09:05:42 UTC) #23
Johnni Winther
6 years, 2 months ago (2014-10-22 12:33:13 UTC) #24
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698