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

Issue 15782009: RFC: introduce dart:js (Closed)

Created:
7 years, 6 months ago by alexandre.ardhuin
Modified:
7 years, 5 months ago
Reviewers:
vsm
CC:
reviews_dartlang.org, justinfagnani
Visibility:
Public.

Description

RFC: introduce dart:js This is a port of js-interop with an optimized dart2js compilation. It also gets rid of noSuchMethod. I also made some renamings inspired by https://github.com/dart-lang/js-interop/issues/68 BUG= R=vsm@google.com Committed: https://code.google.com/p/dart/source/detail?r=25018

Patch Set 1 #

Total comments: 27

Patch Set 2 : fix vsm comments #

Patch Set 3 : fix review comments #

Patch Set 4 : without html and without scopes #

Patch Set 5 : remove Element handling + fix js_dartium for passing tests #

Total comments: 18

Patch Set 6 : additional fixes #

Patch Set 7 : remove all scope handlings #

Total comments: 8

Patch Set 8 : fix comment on patch set 7 #

Patch Set 9 : homogeneous hashCode and operator==(other) + dead code elimination #

Total comments: 10

Patch Set 10 : fix comments on patch 9 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1365 lines, -1 line) Patch
M pkg/browser/lib/interop.js View 1 2 3 4 5 6 7 8 2 chunks +322 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/native_handler.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A sdk/lib/js/dart2js/js_dart2js.dart View 1 2 3 4 5 6 7 8 9 1 chunk +197 lines, -0 lines 0 comments Download
A sdk/lib/js/dartium/js_dartium.dart View 1 2 3 4 5 6 7 8 1 chunk +371 lines, -0 lines 0 comments Download
tests/html/js_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +467 lines, -0 lines 0 comments Download
M tools/create_sdk.py View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
alexandre.ardhuin
7 years, 6 months ago (2013-05-28 20:38:47 UTC) #1
vsm
Nice start! https://chromiumcodereview.appspot.com/15782009/diff/1/sdk/lib/_internal/libraries.dart File sdk/lib/_internal/libraries.dart (right): https://chromiumcodereview.appspot.com/15782009/diff/1/sdk/lib/_internal/libraries.dart#newcode73 sdk/lib/_internal/libraries.dart:73: dart2jsPath: "js/dart2js/js.dart"), We probably should name this ...
7 years, 6 months ago (2013-05-29 04:55:39 UTC) #2
alexandre.ardhuin
https://chromiumcodereview.appspot.com/15782009/diff/1/sdk/lib/_internal/libraries.dart File sdk/lib/_internal/libraries.dart (right): https://chromiumcodereview.appspot.com/15782009/diff/1/sdk/lib/_internal/libraries.dart#newcode73 sdk/lib/_internal/libraries.dart:73: dart2jsPath: "js/dart2js/js.dart"), On 2013/05/29 04:55:39, vsm wrote: > We ...
7 years, 6 months ago (2013-05-31 19:11:13 UTC) #3
vsm
Some more comments: (1) Can you try getting rid of dart:async and dart:html deps? (2) ...
7 years, 6 months ago (2013-06-06 17:06:41 UTC) #4
vsm
One more: Can you try replacing all occurrences of JS('Object', ...) and JS('dynamic', ...) and ...
7 years, 6 months ago (2013-06-06 18:27:19 UTC) #5
alexandre.ardhuin
I think you have reviewed the old version. I have renamed js.dart to js_dart2js.dart in ...
7 years, 6 months ago (2013-06-06 19:58:24 UTC) #6
vsm
On 2013/06/06 19:58:24, alexandre.ardhuin wrote: > I think you have reviewed the old version. I ...
7 years, 6 months ago (2013-06-06 20:08:57 UTC) #7
alexandre.ardhuin
On 2013/06/06 20:08:57, vsm wrote: > On 2013/06/06 19:58:24, alexandre.ardhuin wrote: > > I think ...
7 years, 6 months ago (2013-06-06 20:57:12 UTC) #8
alexandre.ardhuin
Your last comments are fixed (except for the removing of dart:async, I have the CL ...
7 years, 6 months ago (2013-06-06 22:13:37 UTC) #9
alexandre.ardhuin
> > > import 'dart:js'; > > > void main() { > > > context['console'].callMethod('log', ...
7 years, 6 months ago (2013-06-07 14:19:12 UTC) #10
vsm
On 2013/06/07 14:19:12, alexandre.ardhuin wrote: > > > > import 'dart:js'; > > > > ...
7 years, 6 months ago (2013-06-10 15:55:14 UTC) #11
alexandre.ardhuin
On 2013/06/10 15:55:14, vsm wrote: > On 2013/06/07 14:19:12, alexandre.ardhuin wrote: > > > > ...
7 years, 6 months ago (2013-06-10 16:15:49 UTC) #12
alexandre.ardhuin
Tests are updated. js_dart2js and js_dartium pass them.
7 years, 6 months ago (2013-06-10 22:06:37 UTC) #13
vsm
Nice, some more comments. This is getting quite a bit cleaner and simpler! https://chromiumcodereview.appspot.com/15782009/diff/29001/sdk/lib/js/dart2js/js_dart2js.dart File ...
7 years, 6 months ago (2013-06-11 16:17:44 UTC) #14
alexandre.ardhuin
The comments have been addressed. What is the way to test "js_test" against dartium ? ...
7 years, 6 months ago (2013-06-12 21:29:18 UTC) #15
alexandre.ardhuin
The patch 7 removes the scope handlings.
7 years, 6 months ago (2013-06-18 21:33:46 UTC) #16
vsm
https://codereview.chromium.org/15782009/diff/45001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://codereview.chromium.org/15782009/diff/45001/pkg/browser/lib/interop.js#newcode315 pkg/browser/lib/interop.js:315: return [ 'return', serialize(receiver.apply(args[0], args.slice(1))) ]; nit: line length ...
7 years, 6 months ago (2013-06-20 18:43:57 UTC) #17
alexandre.ardhuin
https://codereview.chromium.org/15782009/diff/45001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://codereview.chromium.org/15782009/diff/45001/pkg/browser/lib/interop.js#newcode315 pkg/browser/lib/interop.js:315: return [ 'return', serialize(receiver.apply(args[0], args.slice(1))) ]; On 2013/06/20 18:43:58, ...
7 years, 5 months ago (2013-06-27 17:05:36 UTC) #18
vsm
lgtm!
7 years, 5 months ago (2013-06-27 22:18:41 UTC) #19
alexandre.ardhuin
Last update (I hope) on this CL to fix https://github.com/dart-lang/js-interop/pull/93 . Basically : - in ...
7 years, 5 months ago (2013-07-11 19:35:57 UTC) #20
vsm
https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart#newcode126 sdk/lib/js/dart2js/js_dart2js.dart:126: int get hashCode => 0; Would it make sense ...
7 years, 5 months ago (2013-07-11 19:49:26 UTC) #21
alexandre.ardhuin
https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart#newcode126 sdk/lib/js/dart2js/js_dart2js.dart:126: int get hashCode => 0; On 2013/07/11 19:49:26, vsm ...
7 years, 5 months ago (2013-07-12 19:03:41 UTC) #22
vsm
On 2013/07/12 19:03:41, alexandre.ardhuin wrote: > https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart > File sdk/lib/js/dart2js/js_dart2js.dart (right): > > https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart#newcode126 > ...
7 years, 5 months ago (2013-07-15 13:25:53 UTC) #23
vsm
Still LGTM with minor fixes https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart#newcode193 sdk/lib/js/dart2js/js_dart2js.dart:193: return JS('Object', '#.o', o); ...
7 years, 5 months ago (2013-07-15 13:58:44 UTC) #24
alexandre.ardhuin
On 2013/07/15 13:25:53, vsm wrote: > On 2013/07/12 19:03:41, alexandre.ardhuin wrote: > > > https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart ...
7 years, 5 months ago (2013-07-15 14:52:59 UTC) #25
alexandre.ardhuin
https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/15782009/diff/61001/sdk/lib/js/dart2js/js_dart2js.dart#newcode193 sdk/lib/js/dart2js/js_dart2js.dart:193: return JS('Object', '#.o', o); On 2013/07/15 13:58:45, vsm wrote: ...
7 years, 5 months ago (2013-07-15 14:53:58 UTC) #26
vsm
7 years, 5 months ago (2013-07-15 19:45:07 UTC) #27
Message was sent while issue was closed.
Committed patchset #10 manually as r25018 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698