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

Issue 23291005: add JsArray and JsObject.asJsMap()

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

Description

add JsArray and JsObject.asJsMap()

Patch Set 1 #

Patch Set 2 : fix dart2js and add automatic convertion of Iterables and Maps #

Total comments: 6

Patch Set 3 : rename asJsMap -> asDartMap + change JS type to var #

Total comments: 14

Patch Set 4 : remove /*@override*/ and add JsArray.addAll #

Patch Set 5 : optimizations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -5 lines) Patch
M pkg/browser/lib/interop.js View 1 2 3 4 3 chunks +29 lines, -1 line 0 comments Download
M sdk/lib/js/dart2js/js_dart2js.dart View 1 2 3 6 chunks +96 lines, -3 lines 0 comments Download
M sdk/lib/js/dartium/js_dartium.dart View 1 2 3 4 6 chunks +100 lines, -0 lines 0 comments Download
M tests/html/js_test.dart View 1 2 3 4 4 chunks +222 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
alexandre.ardhuin
7 years, 4 months ago (2013-08-19 21:33:41 UTC) #1
alexandre.ardhuin
Patch Set 2 : fix dart2js and add automatic convertion of Iterables and Maps
7 years, 4 months ago (2013-08-20 15:19:02 UTC) #2
vsm
cool! https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart#newcode182 sdk/lib/js/dart2js/js_dart2js.dart:182: if (index is int && (index < 0 ...
7 years, 4 months ago (2013-08-20 15:44:13 UTC) #3
alexandre.ardhuin
https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart#newcode182 sdk/lib/js/dart2js/js_dart2js.dart:182: if (index is int && (index < 0 || ...
7 years, 4 months ago (2013-08-20 20:58:55 UTC) #4
vsm
On 2013/08/20 20:58:55, alexandre.ardhuin wrote: > https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart > File sdk/lib/js/dart2js/js_dart2js.dart (right): > > https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart#newcode182 > ...
7 years, 4 months ago (2013-08-21 15:47:19 UTC) #5
alexandre.ardhuin
On 2013/08/21 15:47:19, vsm wrote: > On 2013/08/20 20:58:55, alexandre.ardhuin wrote: > > > https://codereview.chromium.org/23291005/diff/9001/sdk/lib/js/dart2js/js_dart2js.dart ...
7 years, 4 months ago (2013-08-21 21:20:11 UTC) #6
vsm
lgtm The asymmetry between list and map seems unfortunate though I see why you did ...
7 years, 4 months ago (2013-08-22 15:36:41 UTC) #7
justinfagnani
Sorry for the delay, I've been in a firedrill this week. I think the implementation ...
7 years, 4 months ago (2013-08-22 18:29:36 UTC) #8
alexandre.ardhuin
The optimisations for _JsObjectAsMap lead to some refactorings and I would prefer to make them ...
7 years, 4 months ago (2013-08-23 21:08:32 UTC) #9
alexandre.ardhuin
7 years, 3 months ago (2013-08-24 19:01:34 UTC) #10
I have added some optimizations.

Powered by Google App Engine
This is Rietveld 408576698