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

Issue 2343123002: [base] Template hashmap on key and value (Closed)

Created:
4 years, 3 months ago by Leszek Swirski
Modified:
4 years, 3 months ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[base] Template hashmap on key and value Adds template parameters for the TemplateHashMapImpl for the key and value type, to allow them to be something other than pointers. To keep the impact of this patch low, uses of TemplateHashMapImpl set these types to void* to emulate the previous behaviour. This is part of a wider set of changes discussed in: https://groups.google.com/forum/#!topic/v8-dev/QLsC0XPYLeM Committed: https://crrev.com/696dd65b80904ea9c029c3ce89d2a5307a1f69f6 Cr-Commit-Position: refs/heads/master@{#39530}

Patch Set 1 #

Patch Set 2 : Initialise entries with placement new #

Total comments: 4

Patch Set 3 : Add some clarifying comments #

Patch Set 4 : Update gyp/gn build files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -85 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/base/hashmap.h View 1 2 14 chunks +104 lines, -84 lines 0 comments Download
A src/base/hashmap-entry.h View 1 1 chunk +54 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/zone.h View 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (9 generated)
Leszek Swirski
4 years, 3 months ago (2016-09-16 14:21:37 UTC) #4
rmcilroy
LGTM. Thanks. https://codereview.chromium.org/2343123002/diff/20001/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2343123002/diff/20001/src/base/hashmap.h#newcode92 src/base/hashmap.h:92: static bool PointersMatch(typename MatchFunHelper<Key>::KeyRef key1, Hmm, this ...
4 years, 3 months ago (2016-09-19 10:32:08 UTC) #5
Leszek Swirski
https://codereview.chromium.org/2343123002/diff/20001/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2343123002/diff/20001/src/base/hashmap.h#newcode92 src/base/hashmap.h:92: static bool PointersMatch(typename MatchFunHelper<Key>::KeyRef key1, On 2016/09/19 10:32:07, rmcilroy ...
4 years, 3 months ago (2016-09-19 10:45:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343123002/40001
4 years, 3 months ago (2016-09-19 16:11:38 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/24369)
4 years, 3 months ago (2016-09-19 16:19:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343123002/60001
4 years, 3 months ago (2016-09-20 08:05:46 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-20 08:40:11 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 08:40:43 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/696dd65b80904ea9c029c3ce89d2a5307a1f69f6
Cr-Commit-Position: refs/heads/master@{#39530}

Powered by Google App Engine
This is Rietveld 408576698