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

Issue 23567019: Change how we generate bound closures to handler boud closures due to super getters: we need to pas… (Closed)

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

Description

Change how we generate bound closures to handler bound closures due to super getters: we need to pass the exact function to call instead of fetching it from the receiver. R=ahe@google.com, kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=27519

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -313 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -7 lines 0 comments Download
M sdk/lib/_internal/lib/js_helper.dart View 1 2 3 4 5 6 7 8 9 10 4 chunks +29 lines, -13 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -6 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
A + tests/lib/mirrors/closures_test.dart View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -282 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ngeoffray
7 years, 3 months ago (2013-09-06 09:58:06 UTC) #1
kasperl
LGTM!
7 years, 3 months ago (2013-09-06 10:10:15 UTC) #2
ngeoffray
Thanks Kasper. PTAL, I had to also fix the hashCode computation of the BoundClosure class.
7 years, 3 months ago (2013-09-07 13:10:00 UTC) #3
kasperl
Still LGTM if you address my one comment: https://codereview.chromium.org/23567019/diff/5001/sdk/lib/_internal/lib/js_helper.dart File sdk/lib/_internal/lib/js_helper.dart (right): https://codereview.chromium.org/23567019/diff/5001/sdk/lib/_internal/lib/js_helper.dart#newcode1517 sdk/lib/_internal/lib/js_helper.dart:1517: JS('String', ...
7 years, 3 months ago (2013-09-09 06:40:40 UTC) #4
ngeoffray
https://codereview.chromium.org/23567019/diff/5001/sdk/lib/_internal/lib/js_helper.dart File sdk/lib/_internal/lib/js_helper.dart (right): https://codereview.chromium.org/23567019/diff/5001/sdk/lib/_internal/lib/js_helper.dart#newcode1517 sdk/lib/_internal/lib/js_helper.dart:1517: JS('String', '#.toString().length', _target), On 2013/09/09 06:40:40, kasperl wrote: > ...
7 years, 3 months ago (2013-09-09 07:08:12 UTC) #5
ngeoffray
https://codereview.chromium.org/23567019/diff/5001/sdk/lib/_internal/lib/js_helper.dart File sdk/lib/_internal/lib/js_helper.dart (right): https://codereview.chromium.org/23567019/diff/5001/sdk/lib/_internal/lib/js_helper.dart#newcode1517 sdk/lib/_internal/lib/js_helper.dart:1517: JS('String', '#.toString().length', _target), On 2013/09/09 07:08:13, ngeoffray wrote: > ...
7 years, 3 months ago (2013-09-09 10:22:06 UTC) #6
ngeoffray
+ahe Adding Peter since he convinced me the hashCode implementation was pretty bad (also in ...
7 years, 3 months ago (2013-09-09 11:18:36 UTC) #7
ahe
LGTM, but please test ClosureMirror.function.
7 years, 3 months ago (2013-09-11 12:16:03 UTC) #8
ngeoffray
On 2013/09/11 12:16:03, ahe wrote: > LGTM, but please test ClosureMirror.function. Done, but PTAL to ...
7 years, 3 months ago (2013-09-13 08:38:51 UTC) #9
ahe
LGTM! https://codereview.chromium.org/23567019/diff/35001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/23567019/diff/35001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode2603 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:2603: String className = backend.namer.isolateAccess(classElement); Use elementAccess, not isolateAccess. ...
7 years, 3 months ago (2013-09-16 12:26:40 UTC) #10
ngeoffray
Thanks Peter. https://codereview.chromium.org/23567019/diff/35001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/23567019/diff/35001/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode2603 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:2603: String className = backend.namer.isolateAccess(classElement); On 2013/09/16 12:26:40, ...
7 years, 3 months ago (2013-09-16 12:34:35 UTC) #11
ngeoffray
7 years, 3 months ago (2013-09-16 13:09:24 UTC) #12
Message was sent while issue was closed.
Committed patchset #12 manually as r27519 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698