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

Issue 2345233003: [base] Move hashmap allocator to a field (Closed)

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

Description

[base] Move hashmap allocator to a field Moves the hashmap's allocator from being a parameter in the various hashmap functions, to being a field in the hashmap itself. This 1. Protects against incorrectly passed allocators, and 2. Cleans up the API so that e.g. callers don't have to store their allocator This is part of a wider set of changes discussed in: https://groups.google.com/forum/#!topic/v8-dev/QLsC0XPYLeM Committed: https://crrev.com/b42ecda533bd53ddc17f55e256236f23253382b8 Cr-Commit-Position: refs/heads/master@{#39538}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove empty base class optimisation #

Total comments: 6

Patch Set 3 : Remove zone parameters where no longer needed #

Patch Set 4 : Remove zone arguments where the parameters were removed so that the bloody thing compiles again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -68 lines) Patch
M src/asmjs/asm-typer.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/asmjs/asm-wasm-builder.cc View 6 chunks +8 lines, -12 lines 0 comments Download
M src/ast/ast.h View 3 chunks +4 lines, -6 lines 0 comments Download
M src/ast/ast.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/scopes.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 chunks +9 lines, -12 lines 0 comments Download
M src/base/hashmap.h View 1 8 chunks +22 lines, -24 lines 0 comments Download
M src/compiler/state-values-utils.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/crankshaft/hydrogen-bce.cc View 1 chunk +2 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (18 generated)
Leszek Swirski
This will need a lot of reviewers...
4 years, 3 months ago (2016-09-16 16:23:43 UTC) #4
rmcilroy
https://codereview.chromium.org/2345233003/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2345233003/diff/1/src/base/hashmap.h#newcode99 src/base/hashmap.h:99: // DefaultAllocationPolicy above. Let's make this a field instead ...
4 years, 3 months ago (2016-09-19 10:55:11 UTC) #8
Leszek Swirski
https://codereview.chromium.org/2345233003/diff/1/src/base/hashmap.h File src/base/hashmap.h (right): https://codereview.chromium.org/2345233003/diff/1/src/base/hashmap.h#newcode99 src/base/hashmap.h:99: // DefaultAllocationPolicy above. On 2016/09/19 10:55:11, rmcilroy wrote: > ...
4 years, 3 months ago (2016-09-19 12:20:56 UTC) #10
Leszek Swirski
ahaas@chromium.org: Please review changes in marja@chromium.org: Please review changes in bmeurer@chromium.org: Please review changes in ...
4 years, 3 months ago (2016-09-19 12:59:35 UTC) #12
ahaas
On 2016/09/19 at 12:59:35, leszeks wrote: > ahaas@chromium.org: Please review changes in > > marja@chromium.org: ...
4 years, 3 months ago (2016-09-19 13:03:52 UTC) #13
Benedikt Meurer
LGTM
4 years, 3 months ago (2016-09-19 13:11:19 UTC) #14
rmcilroy
LGTM
4 years, 3 months ago (2016-09-19 13:51:43 UTC) #15
commit-bot: I haz the power
This CL has an open dependency (Issue 2343123002 Patch 40001). Please resolve the dependency and ...
4 years, 3 months ago (2016-09-19 16:11:49 UTC) #18
marja
https://codereview.chromium.org/2345233003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2345233003/diff/20001/src/ast/scopes.cc#newcode30 src/ast/scopes.cc:30: Variable* VariableMap::Declare(Zone* zone, Scope* scope, Can you now drop ...
4 years, 3 months ago (2016-09-20 08:34:54 UTC) #19
marja
heimbuef, fyi, this is related to your Zone work (allows us to drop one Zone ...
4 years, 3 months ago (2016-09-20 09:06:27 UTC) #20
Leszek Swirski
Thanks Marja, I'll wait for an LGTM from you before submitting. https://codereview.chromium.org/2345233003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): ...
4 years, 3 months ago (2016-09-20 09:19:21 UTC) #21
marja
ast/ lgtm once it builds ;) (Ah yes, we still need to create the Variables ...
4 years, 3 months ago (2016-09-20 09:33:33 UTC) #22
Leszek Swirski
Looks like my morning coffee isn't working. Newest patchset compiles again.
4 years, 3 months ago (2016-09-20 09:49:52 UTC) #27
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/2345233003/60001
4 years, 3 months ago (2016-09-20 09:50:08 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-20 10:45:36 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 10:46:12 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b42ecda533bd53ddc17f55e256236f23253382b8
Cr-Commit-Position: refs/heads/master@{#39538}

Powered by Google App Engine
This is Rietveld 408576698