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

Issue 2869393003: Allow overriding core types in dart:_interceptors. (Closed)

Created:
3 years, 7 months ago by Siggi Cherem (dart-lang)
Modified:
3 years, 6 months ago
Reviewers:
ahe, scheglov, Paul Berry
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow overriding core types in dart:_interceptors. This gets rid of the warning you get today when building the SDK (you can see this on the `build.py -m release patched_dart2js_sdk` target). R=ahe@google.com, paulberry@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/bd85c499b04ccd66dc3b3dc12e5435862e56a675

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove todo, just document #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 1 1 chunk +4 lines, -1 line 3 comments Download

Messages

Total messages: 11 (2 generated)
Siggi Cherem (dart-lang)
3 years, 7 months ago (2017-05-10 18:13:35 UTC) #1
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2869393003/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (right): https://codereview.chromium.org/2869393003/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart#newcode398 pkg/front_end/lib/src/fasta/source/source_loader.dart:398: // dart:_interceptors (for dart2js). not sure that it is ...
3 years, 7 months ago (2017-05-10 18:14:22 UTC) #2
Paul Berry
lgtm but I'm not too familiar with this code. +Konstantin in case he is more ...
3 years, 7 months ago (2017-05-10 18:19:18 UTC) #4
scheglov
LGTM https://codereview.chromium.org/2869393003/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (right): https://codereview.chromium.org/2869393003/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart#newcode398 pkg/front_end/lib/src/fasta/source/source_loader.dart:398: // dart:_interceptors (for dart2js). On 2017/05/10 18:14:22, Siggi ...
3 years, 7 months ago (2017-05-10 18:27:47 UTC) #5
Siggi Cherem (dart-lang)
Thanks! - updated from TODO to a simple comment.
3 years, 7 months ago (2017-05-10 18:32:50 UTC) #6
Siggi Cherem (dart-lang)
Committed patchset #2 (id:20001) manually as bd85c499b04ccd66dc3b3dc12e5435862e56a675 (presubmit successful).
3 years, 7 months ago (2017-05-10 18:33:30 UTC) #8
ahe
https://codereview.chromium.org/2869393003/diff/20001/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (right): https://codereview.chromium.org/2869393003/diff/20001/pkg/front_end/lib/src/fasta/source/source_loader.dart#newcode394 pkg/front_end/lib/src/fasta/source/source_loader.dart:394: } else if (!cls.library.uri.isScheme('dart') && I'm concerned about performance ...
3 years, 6 months ago (2017-05-29 15:49:55 UTC) #9
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2869393003/diff/20001/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (right): https://codereview.chromium.org/2869393003/diff/20001/pkg/front_end/lib/src/fasta/source/source_loader.dart#newcode394 pkg/front_end/lib/src/fasta/source/source_loader.dart:394: } else if (!cls.library.uri.isScheme('dart') && On 2017/05/29 15:49:55, ahe ...
3 years, 6 months ago (2017-05-30 19:22:02 UTC) #10
Siggi Cherem (dart-lang)
3 years, 6 months ago (2017-05-30 21:16:58 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2869393003/diff/20001/pkg/front_end/lib/src/f...
File pkg/front_end/lib/src/fasta/source/source_loader.dart (right):

https://codereview.chromium.org/2869393003/diff/20001/pkg/front_end/lib/src/f...
pkg/front_end/lib/src/fasta/source/source_loader.dart:394: } else if
(!cls.library.uri.isScheme('dart') &&
On 2017/05/30 19:22:01, Siggi Cherem (dart-lang) wrote:
> On 2017/05/29 15:49:55, ahe wrote:
> > I'm concerned about performance of this change. This loops over all classes
> and
> > performs string manipulation on URIs.
> > 
> > In addition, would prefer if this invariant was broken by dart2js specific
> code.
> 
> Good point - I'll take a stab at making this overridable by dart2js instead.

Sent you https://codereview.chromium.org/2907333003/ to address this.

Powered by Google App Engine
This is Rietveld 408576698