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

Issue 2354593002: [base] Template MatchFun in TemplateHashMapImpl (Closed)

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

Description

[base] Template MatchFun in TemplateHashMapImpl Make MatchFun a template parameter in TemplateHashMapImpl, moving the PointersMatch function down to an implementation which extends TemplateHashMapImpl to void* key and value (i.e. the same as the current HashMap and ZoneHashMap typedefs). This will allow other instantiations of TemplateHashMapImpl, with different MatchFun values, e.g. std::equal_to, to have their key equality test inlined, rather than calling a function pointer, Committed: https://crrev.com/837c91e87bbaaa046e94ad62d924059324a0c10d Cr-Commit-Position: refs/heads/master@{#39868}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebase #

Patch Set 3 : Renaming and making PointersMatch a default param #

Patch Set 4 : Rebase after forgetting to rebase #

Total comments: 4

Patch Set 5 : Remove bad search-replace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -100 lines) Patch
M src/address-map.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M src/address-map.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/base/hashmap.h View 1 2 3 4 13 chunks +88 lines, -85 lines 0 comments Download
M src/gdb-jit.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/libsampler/sampler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/profiler/allocation-tracker.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/profiler/heap-snapshot-generator.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/snapshot/serializer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/snapshot/serializer-common.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/snapshot/startup-serializer.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/zone/zone.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (17 generated)
Leszek Swirski
4 years, 3 months ago (2016-09-19 16:12:25 UTC) #2
rmcilroy
looks good, a couple of comments https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h#newcode39 src/base/hashmap.h:39: TemplateHashMapImpl(MatchFun match = ...
4 years, 3 months ago (2016-09-19 17:21:35 UTC) #7
Leszek Swirski
https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h#newcode39 src/base/hashmap.h:39: TemplateHashMapImpl(MatchFun match = MatchFun(), On 2016/09/19 17:21:35, rmcilroy wrote: ...
4 years, 3 months ago (2016-09-20 11:14:30 UTC) #10
rmcilroy
https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h#newcode39 src/base/hashmap.h:39: TemplateHashMapImpl(MatchFun match = MatchFun(), On 2016/09/20 11:14:30, Leszek Swirski ...
4 years, 3 months ago (2016-09-20 12:57:57 UTC) #13
Leszek Swirski
https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h#newcode39 src/base/hashmap.h:39: TemplateHashMapImpl(MatchFun match = MatchFun(), On 2016/09/20 12:57:57, rmcilroy wrote: ...
4 years, 3 months ago (2016-09-20 15:04:20 UTC) #14
rmcilroy
LGTM with comments addressed. Thanks https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2354593002/diff/1/src/base/hashmap.h#newcode318 src/base/hashmap.h:318: template <typename AllocationPolicy> On ...
4 years, 3 months ago (2016-09-20 16:06:04 UTC) #15
Leszek Swirski
https://codereview.chromium.org/2354593002/diff/60001/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2354593002/diff/60001/src/base/hashmap.h#newcode324 src/base/hashmap.h:324: Base; On 2016/09/20 16:06:03, rmcilroy wrote: > weird formating ...
4 years, 2 months ago (2016-09-26 16:54:52 UTC) #20
Leszek Swirski
verwaest@chromium.org: Please review changes in
4 years, 2 months ago (2016-09-28 13:18:57 UTC) #22
Toon Verwaest
lgtm profiler / snapshot, didn't look at all changes. I presume you need an owner ...
4 years, 2 months ago (2016-09-29 13:21:22 UTC) #23
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/2354593002/80001
4 years, 2 months ago (2016-09-29 13:23:00 UTC) #26
Leszek Swirski
Perfect, and yes, sorry about that.
4 years, 2 months ago (2016-09-29 13:23:28 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-29 13:53:16 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 13:53:33 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/837c91e87bbaaa046e94ad62d924059324a0c10d
Cr-Commit-Position: refs/heads/master@{#39868}

Powered by Google App Engine
This is Rietveld 408576698