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

Issue 1145833004: fixes #173, ability to use native JS indexers (Closed)

Created:
5 years, 7 months ago by Jennifer Messerly
Modified:
5 years, 6 months ago
Reviewers:
vsm, Jacob
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fixes #173, ability to use native JS indexers dom_experimental could opt-in to use this R=jacobr@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/2317e72cd276230b92e104519f3be1019cee07d8

Patch Set 1 #

Total comments: 7

Patch Set 2 : resurrect CL #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : merged #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -27 lines) Patch
M lib/src/codegen/js_codegen.dart View 1 2 3 4 5 6 chunks +20 lines, -6 lines 0 comments Download
M lib/src/utils.dart View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
A test/codegen/domtest.dart View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M test/codegen/expect/DeltaBlue.js View 1 2 3 4 5 9 chunks +12 lines, -12 lines 0 comments Download
A test/codegen/expect/domtest.js View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A test/codegen/expect/domtest.txt View 4 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen/expect/sunflower/dom.js View 1 2 3 4 2 chunks +0 lines, -2 lines 2 comments Download
M test/codegen/sunflower/dom.dart View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (1 generated)
Jennifer Messerly
Thoughts?
5 years, 7 months ago (2015-05-19 23:03:09 UTC) #2
vsm
General q: should we patch dindex and dsetindex to somehow recognize these types? https://codereview.chromium.org/1145833004/diff/1/lib/src/utils.dart File ...
5 years, 7 months ago (2015-05-20 19:15:30 UTC) #3
Jennifer Messerly
> General q: should we patch dindex and dsetindex to somehow recognize these types? yep, ...
5 years, 7 months ago (2015-05-20 19:25:32 UTC) #4
vsm
https://codereview.chromium.org/1145833004/diff/1/lib/src/utils.dart File lib/src/utils.dart (right): https://codereview.chromium.org/1145833004/diff/1/lib/src/utils.dart#newcode353 lib/src/utils.dart:353: AnnotatedNode node, bool test(DartObjectImpl value)) { On 2015/05/20 19:25:32, ...
5 years, 7 months ago (2015-05-20 19:39:50 UTC) #5
Jacob
looks good. some minor nits. https://codereview.chromium.org/1145833004/diff/1/test/codegen/domtest.dart File test/codegen/domtest.dart (right): https://codereview.chromium.org/1145833004/diff/1/test/codegen/domtest.dart#newcode14 test/codegen/domtest.dart:14: print(nodes[i] = null); nodes[i] ...
5 years, 7 months ago (2015-05-20 19:55:22 UTC) #6
Jennifer Messerly
https://codereview.chromium.org/1145833004/diff/1/test/codegen/sunflower/dom.dart File test/codegen/sunflower/dom.dart (right): https://codereview.chromium.org/1145833004/diff/1/test/codegen/sunflower/dom.dart#newcode44 test/codegen/sunflower/dom.dart:44: @JsIndexer() On 2015/05/20 19:55:21, Jacob wrote: > Seems a ...
5 years, 7 months ago (2015-05-20 20:13:31 UTC) #7
Jennifer Messerly
Committed patchset #1 (id:1) manually as 8dc1eeeb4dcc4d186f59513abd18f98e67c36339 (presubmit successful).
5 years, 6 months ago (2015-06-01 15:46:29 UTC) #8
Jennifer Messerly
FYI ... landed the wrong branch by accident =(. Reverting @ https://codereview.chromium.org/1160343003
5 years, 6 months ago (2015-06-01 16:29:43 UTC) #9
Jennifer Messerly
Hey Jacob, question about one of your comments. I totally misunderstood it the first time. ...
5 years, 6 months ago (2015-06-01 17:36:58 UTC) #10
Jacob
On 2015/06/01 17:36:58, John Messerly wrote: > Hey Jacob, question about one of your comments. ...
5 years, 6 months ago (2015-06-01 17:53:24 UTC) #11
Jennifer Messerly
Hey Vijay and/or Jacob, would you mind taking another look? I think I've addressed all ...
5 years, 6 months ago (2015-06-04 22:16:20 UTC) #12
Jennifer Messerly
On 2015/06/04 22:16:20, John Messerly wrote: > Hey Vijay and/or Jacob, would you mind taking ...
5 years, 6 months ago (2015-06-04 22:17:16 UTC) #13
Jennifer Messerly
test case fixed :)
5 years, 6 months ago (2015-06-04 22:20:14 UTC) #14
Jacob
lgtm
5 years, 6 months ago (2015-06-05 18:28:48 UTC) #15
Jennifer Messerly
Committed patchset #6 (id:100001) manually as 2317e72cd276230b92e104519f3be1019cee07d8 (presubmit successful).
5 years, 6 months ago (2015-06-05 19:14:13 UTC) #16
vsm
5 years, 6 months ago (2015-06-05 19:20:06 UTC) #17
vsm
https://codereview.chromium.org/1145833004/diff/100001/test/codegen/expect/sunflower/dom.js File test/codegen/expect/sunflower/dom.js (right): https://codereview.chromium.org/1145833004/diff/100001/test/codegen/expect/sunflower/dom.js#newcode22 test/codegen/expect/sunflower/dom.js:22: let EventListener = dart.typedef('EventListener', () => dart.functionType(dart.void, [Event])); Event ...
5 years, 6 months ago (2015-06-05 19:22:06 UTC) #18
Jennifer Messerly
5 years, 6 months ago (2015-06-05 19:24:37 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1145833004/diff/100001/test/codegen/expect/su...
File test/codegen/expect/sunflower/dom.js (right):

https://codereview.chromium.org/1145833004/diff/100001/test/codegen/expect/su...
test/codegen/expect/sunflower/dom.js:22: let EventListener =
dart.typedef('EventListener', () => dart.functionType(dart.void, [Event]));
On 2015/06/05 19:22:05, vsm wrote:
> Event is gone, but it's referred to right here still.

just chatted ... I think what happened here is Event is now @JsName, so we don't
generate it, on the theory that it's already a global.

Powered by Google App Engine
This is Rietveld 408576698