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

Issue 11860008: Stop passing library elements to tons of namer functions. (Closed)

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

Description

Stop passing library elements to tons of namer functions. Whenever we have to "invent" a library reference there's a good chance that we get it wrong (because of inlining, etc.) which messes up our privacy implementation. Committed: https://code.google.com/p/dart/source/detail?r=16963

Patch Set 1 #

Patch Set 2 : Diff against https://codereview.chromium.org/11819060/. #

Total comments: 2

Patch Set 3 : Get rid of assertion. #

Patch Set 4 : Argh. #

Patch Set 5 : Address review comments. #

Patch Set 6 : Merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -142 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 3 6 chunks +10 lines, -21 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 1 2 3 4 5 7 chunks +69 lines, -79 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart View 1 3 1 chunk +6 lines, -11 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 3 2 chunks +2 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 6 chunks +9 lines, -26 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/universe/universe.dart View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
kasperl
7 years, 11 months ago (2013-01-11 10:14:34 UTC) #1
kasperl
Feel free to ignore this for now. It's based on another CL and I messed ...
7 years, 11 months ago (2013-01-11 10:15:41 UTC) #2
kasperl
Ready for review.
7 years, 11 months ago (2013-01-11 10:18:27 UTC) #3
ngeoffray
LGTM! https://codereview.chromium.org/11860008/diff/4001/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart File sdk/lib/_internal/compiler/implementation/js_backend/namer.dart (right): https://codereview.chromium.org/11860008/diff/4001/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart#newcode148 sdk/lib/_internal/compiler/implementation/js_backend/namer.dart:148: return '_library$libraryName\$$nameString'; Note that you just changed the ...
7 years, 11 months ago (2013-01-11 10:29:11 UTC) #4
erikcorry
Unfortunately, this broke minified mode. It was already a little broken with 3 failing tests, ...
7 years, 11 months ago (2013-01-15 13:11:34 UTC) #5
kasperl
Thanks for the update, Erik. I'll try to fix that.
7 years, 11 months ago (2013-01-15 13:19:17 UTC) #6
kasperl
7 years, 11 months ago (2013-01-15 14:25:45 UTC) #7
Message was sent while issue was closed.
Fix uploaded in https://codereview.chromium.org/11893003/. Even with this fix I
still see ~7 failures.

Powered by Google App Engine
This is Rietveld 408576698