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

Issue 1032783003: dart2js: use Es6 maps when available. (Closed)

Created:
5 years, 9 months ago by floitsch
Modified:
5 years, 8 months ago
Reviewers:
herhut, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Move code around #

Total comments: 2

Patch Set 3 : Apply Slava's patch. #

Patch Set 4 : Reformat code. #

Total comments: 11

Patch Set 5 : Address comments. #

Patch Set 6 : Rebase #

Patch Set 7 : Make the es6 maps dependent on a compiler flag. #

Patch Set 8 : Minor cleanups #

Total comments: 2

Patch Set 9 : Reupload after revert #

Patch Set 10 : Mark empty-hashmap creation as having no side-effect. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -29 lines) Patch
M pkg/compiler/lib/src/js_backend/namer.dart View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/annotations.dart View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/collection_patch.dart View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart View 1 2 3 4 5 6 7 8 9 8 chunks +67 lines, -22 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
Vyacheslav Egorov (Google)
dbc https://codereview.chromium.org/1032783003/diff/20001/sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart File sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart (right): https://codereview.chromium.org/1032783003/diff/20001/sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart#newcode124 sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart:124: var bucket = JS('var', '#[#]', rest, hash); should ...
5 years, 9 months ago (2015-03-25 08:43:52 UTC) #2
floitsch
https://codereview.chromium.org/1032783003/diff/20001/sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart File sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart (right): https://codereview.chromium.org/1032783003/diff/20001/sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart#newcode124 sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart:124: var bucket = JS('var', '#[#]', rest, hash); On 2015/03/25 ...
5 years, 9 months ago (2015-03-25 23:58:15 UTC) #3
floitsch
Brings a nice speedup on v8. However, on Slava's jsshell it degrades the performance of ...
5 years, 9 months ago (2015-03-26 00:01:15 UTC) #5
Vyacheslav Egorov (Google)
https://codereview.chromium.org/1032783003/diff/60001/sdk/lib/_internal/compiler/js_lib/collection_patch.dart File sdk/lib/_internal/compiler/js_lib/collection_patch.dart (right): https://codereview.chromium.org/1032783003/diff/60001/sdk/lib/_internal/compiler/js_lib/collection_patch.dart#newcode530 sdk/lib/_internal/compiler/js_lib/collection_patch.dart:530: Map map = JsLinkedHashMap.supportsEs6Maps Can this just call some ...
5 years, 9 months ago (2015-03-26 00:03:58 UTC) #7
Harry Terkelsen
https://codereview.chromium.org/1032783003/diff/60001/sdk/lib/_internal/compiler/js_lib/collection_patch.dart File sdk/lib/_internal/compiler/js_lib/collection_patch.dart (right): https://codereview.chromium.org/1032783003/diff/60001/sdk/lib/_internal/compiler/js_lib/collection_patch.dart#newcode530 sdk/lib/_internal/compiler/js_lib/collection_patch.dart:530: Map map = JsLinkedHashMap.supportsEs6Maps On 2015/03/26 00:03:57, Vyacheslav Egorov ...
5 years, 9 months ago (2015-03-26 00:40:07 UTC) #8
floitsch
https://codereview.chromium.org/1032783003/diff/60001/sdk/lib/_internal/compiler/js_lib/collection_patch.dart File sdk/lib/_internal/compiler/js_lib/collection_patch.dart (right): https://codereview.chromium.org/1032783003/diff/60001/sdk/lib/_internal/compiler/js_lib/collection_patch.dart#newcode530 sdk/lib/_internal/compiler/js_lib/collection_patch.dart:530: Map map = JsLinkedHashMap.supportsEs6Maps On 2015/03/26 00:03:57, Vyacheslav Egorov ...
5 years, 9 months ago (2015-03-26 00:53:24 UTC) #9
Vyacheslav Egorov (Google)
One thing that we seemed to miss in our benchmarking is that Map.prototype.get with a ...
5 years, 8 months ago (2015-04-07 20:34:05 UTC) #10
floitsch
PTAL. I made the ES6 map dependent on a compiler flag. This allows us to ...
5 years, 8 months ago (2015-04-09 11:06:55 UTC) #11
floitsch
ping.
5 years, 8 months ago (2015-04-13 08:09:58 UTC) #12
herhut
https://chromiumcodereview.appspot.com/1032783003/diff/140001/sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart File sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart (right): https://chromiumcodereview.appspot.com/1032783003/diff/140001/sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart#newcode46 sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart:46: if (_USE_ES6_MAPS && JsLinkedHashMap._supportsEs6Maps) { Type inference will not ...
5 years, 8 months ago (2015-04-13 12:58:33 UTC) #14
herhut
lgtm
5 years, 8 months ago (2015-04-13 14:20:00 UTC) #15
floitsch
Committed patchset #8 (id:140001) manually as 45105 (presubmit successful).
5 years, 8 months ago (2015-04-13 14:27:33 UTC) #16
floitsch
Had to revert. PTAL. I'm now using the "NoSideEffects" annotation. (I ran through all tests, ...
5 years, 8 months ago (2015-04-14 17:55:03 UTC) #18
sra1
lgtm. I see that we still have LinkedHashMapCell and separate maps for strings and numbers. ...
5 years, 8 months ago (2015-04-14 20:32:07 UTC) #19
floitsch
On 2015/04/14 20:32:07, sra1 wrote: > lgtm. > > I see that we still have ...
5 years, 8 months ago (2015-04-15 09:14:59 UTC) #20
floitsch
5 years, 8 months ago (2015-04-15 10:45:03 UTC) #21
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as 45158 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698