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

Issue 949733003: Share the JavaScript based LinkedHashMap implementation between constant maps and the LinkedHashMap… (Closed)

Created:
5 years, 10 months ago by karlklose
Modified:
5 years, 7 months ago
Reviewers:
Johnni Winther, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Share the JavaScript based LinkedHashMap implementation between constant maps and the LinkedHashMap patch. This fixes performance a performance issue with using enums, because their backing map required runtime type information before (due to a lack of precision on the analysis of factory constructors). R=johnniwinther@google.com bug= dartbug.com/22495 Committed: https://code.google.com/p/dart/source/detail?r=43984

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -405 lines) Patch
M pkg/compiler/lib/src/compiler.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 chunk +11 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/js_backend.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/resolution/members.dart View 1 chunk +1 line, -5 lines 0 comments Download
M pkg/compiler/lib/src/resolution/registry.dart View 2 chunks +5 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/collection_patch.dart View 4 chunks +17 lines, -388 lines 2 comments Download
M sdk/lib/_internal/compiler/js_lib/constant_map.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 3 chunks +3 lines, -1 line 0 comments Download
A sdk/lib/_internal/compiler/js_lib/linked_hash_map.dart View 1 chunk +380 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
karlklose
5 years, 10 months ago (2015-02-24 10:09:13 UTC) #1
Johnni Winther
lgtm
5 years, 10 months ago (2015-02-24 10:14:16 UTC) #2
karlklose
Committed patchset #1 (id:1) manually as 43984 (presubmit successful).
5 years, 10 months ago (2015-02-24 11:13:11 UTC) #3
sra1
Any ideas why this increases the size of swarm by 2k? I would have though ...
5 years, 10 months ago (2015-02-24 16:51:37 UTC) #5
karlklose
On 2015/02/24 16:51:37, sra1 wrote: > Any ideas why this increases the size of swarm ...
5 years, 10 months ago (2015-02-25 07:41:02 UTC) #6
sra1
https://codereview.chromium.org/949733003/diff/1/sdk/lib/_internal/compiler/js_lib/collection_patch.dart File sdk/lib/_internal/compiler/js_lib/collection_patch.dart (right): https://codereview.chromium.org/949733003/diff/1/sdk/lib/_internal/compiler/js_lib/collection_patch.dart#newcode542 sdk/lib/_internal/compiler/js_lib/collection_patch.dart:542: int internalFindBucketIndex(var bucket, var key) { Can this be ...
5 years, 7 months ago (2015-05-15 22:59:34 UTC) #7
Johnni Winther
5 years, 7 months ago (2015-05-18 07:11:31 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/949733003/diff/1/sdk/lib/_internal/compiler/j...
File sdk/lib/_internal/compiler/js_lib/collection_patch.dart (right):

https://codereview.chromium.org/949733003/diff/1/sdk/lib/_internal/compiler/j...
sdk/lib/_internal/compiler/js_lib/collection_patch.dart:542: int
internalFindBucketIndex(var bucket, var key) {
On 2015/05/15 22:59:33, sra1 wrote:
> Can this be rewritten to avoid public names that are not part of an interface?

If not, maybe we should make named of injected members implicitly private within
the internal libraries.

Powered by Google App Engine
This is Rietveld 408576698