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

Issue 588183002: Emit warning on import of dart:mirrors. (Closed)

Created:
6 years, 3 months ago by Johnni Winther
Modified:
5 years, 11 months ago
Reviewers:
rmacnak, sethladd, floitsch
CC:
reviews_dartlang.org, sethladd, gbracha, ahe
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Rebased #

Patch Set 4 : Updated cf. comments. #

Patch Set 5 : Update link. #

Patch Set 6 : Hardwire '--enable-experimental-mirrors' again. #

Patch Set 7 : Rebased #

Patch Set 8 : Optimize and limit import chain processing #

Total comments: 18

Patch Set 9 : Updated cf. comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+695 lines, -68 lines) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 2 1 chunk +2 lines, -0 lines 4 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 2 3 4 5 6 7 8 7 chunks +165 lines, -33 lines 0 comments Download
M pkg/compiler/lib/src/dart2js.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/dart2jslib.dart View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/dart_backend/backend.dart View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/dart_backend/dart_backend.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/helpers/helpers.dart View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/js_backend.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/library_loader.dart View 1 2 3 4 5 6 7 8 3 chunks +119 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/util/uri_extras.dart View 1 2 3 chunks +16 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/warnings.dart View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/exit_code_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
A tests/compiler/dart2js/import_mirrors_test.dart View 1 2 1 chunk +316 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/memory_compiler.dart View 1 2 3 chunks +26 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/message_kind_helper.dart View 1 2 4 5 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/message_kind_test.dart View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/mirrors_used_test.dart View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (6 generated)
Johnni Winther
6 years, 3 months ago (2014-09-22 13:02:49 UTC) #2
floitsch
LGTM! I really like the output. @Seth: we now need a URI to link to. ...
6 years, 3 months ago (2014-09-22 20:52:59 UTC) #3
Johnni Winther
https://codereview.chromium.org/588183002/diff/20001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/588183002/diff/20001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode1200 sdk/lib/_internal/compiler/implementation/compiler.dart:1200: return new Future.value(); On 2014/09/22 20:52:59, floitsch wrote: > ...
6 years, 1 month ago (2014-11-12 13:06:26 UTC) #4
Johnni Winther
Committed patchset #6 (id:100001) manually as 41688 (presubmit successful).
6 years, 1 month ago (2014-11-12 13:21:15 UTC) #5
Johnni Winther
PTAL @ the latest patch
6 years, 1 month ago (2014-11-18 14:15:10 UTC) #8
floitsch
LGTM. https://codereview.chromium.org/588183002/diff/180001/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/588183002/diff/180001/pkg/compiler/lib/src/compiler.dart#newcode659 pkg/compiler/lib/src/compiler.dart:659: final bool useContentSecurityPolicy; Move `final bool enableExperimentalMirrors;` to ...
6 years, 1 month ago (2014-11-18 15:50:01 UTC) #9
Johnni Winther
https://codereview.chromium.org/588183002/diff/180001/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/588183002/diff/180001/pkg/compiler/lib/src/compiler.dart#newcode659 pkg/compiler/lib/src/compiler.dart:659: final bool useContentSecurityPolicy; On 2014/11/18 15:50:01, floitsch wrote: > ...
6 years, 1 month ago (2014-11-19 08:52:20 UTC) #10
Johnni Winther
Committed patchset #9 (id:220001) manually as 41822 (presubmit successful).
6 years, 1 month ago (2014-11-19 09:21:07 UTC) #12
rmacnak
https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart#newcode83 pkg/compiler/lib/src/apiimpl.dart:83: enableExperimentalMirrors: Uhh, what do you intend to put behind ...
5 years, 11 months ago (2015-01-14 18:30:29 UTC) #14
floitsch
https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart#newcode83 pkg/compiler/lib/src/apiimpl.dart:83: enableExperimentalMirrors: On 2015/01/14 18:30:29, rmacnak wrote: > Uhh, what ...
5 years, 11 months ago (2015-01-15 10:43:52 UTC) #15
rmacnak
https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart#newcode83 pkg/compiler/lib/src/apiimpl.dart:83: enableExperimentalMirrors: On 2015/01/15 10:43:52, floitsch wrote: > On 2015/01/14 ...
5 years, 11 months ago (2015-01-15 21:48:53 UTC) #16
floitsch
https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/588183002/diff/220001/pkg/compiler/lib/src/apiimpl.dart#newcode83 pkg/compiler/lib/src/apiimpl.dart:83: enableExperimentalMirrors: On 2015/01/15 21:48:52, rmacnak wrote: > On 2015/01/15 ...
5 years, 11 months ago (2015-01-15 22:35:15 UTC) #17
sethladd
5 years, 11 months ago (2015-01-15 23:24:17 UTC) #19
Message was sent while issue was closed.
After lots of discussion, we'd like to propose:

* Do not include an opt-in flag now. Revisit the flag once alternative solutions
are in place.

* Ensure the link displayed in the warning output is actionable.

* Investigate how the warning is displayed in our tools (IDEs, pub build, etc).
Does the warning zoom by and is easily missed? Is it printed at the end of the
process?

Powered by Google App Engine
This is Rietveld 408576698