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

Issue 1074943002: Split TemplateHashMapImpl::Lookup into two methods (Closed)

Created:
5 years, 8 months ago by adamk
Modified:
5 years, 8 months ago
Reviewers:
yangguo, marja
CC:
v8-dev, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Split TemplateHashMapImpl::Lookup into two methods This avoids both a mysterious boolean argument ("insert") and lets non-mutating lookups skip passing an allocator (in one such case, we were passing a scary-looking ZoneAllocationPolicy(NULL)!). Committed: https://crrev.com/5277c41044d94ce6452e5fcf6ed703d6c1dcfe4b Cr-Commit-Position: refs/heads/master@{#27799}

Patch Set 1 #

Patch Set 2 : Fix arm (and ppc) builds #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -131 lines) Patch
M src/allocation-tracker.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm/simulator-arm.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/ast.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ast-value-factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/state-values-utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/d8.h View 1 chunk +4 lines, -8 lines 0 comments Download
M src/debug.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/gdb-jit.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/hashmap.h View 5 chunks +38 lines, -30 lines 2 comments Download
M src/heap-snapshot-generator.cc View 11 chunks +19 lines, -21 lines 0 comments Download
M src/heap/spaces.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M src/hydrogen-bce.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/modules.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M src/ppc/simulator-ppc.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/profile-generator.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M src/scanner.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/scopes.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/snapshot/serialize.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/snapshot/serialize.cc View 4 chunks +7 lines, -8 lines 0 comments Download
M src/strings-storage.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 5 chunks +10 lines, -16 lines 2 comments Download
M test/cctest/test-hashmap.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 3 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
adamk
Reviewers picked mostly at random, as this file hasn't changed much recently.
5 years, 8 months ago (2015-04-09 19:38:54 UTC) #2
marja
lgtm, I think this API is clearer than the boolean parameter. https://codereview.chromium.org/1074943002/diff/20001/src/hashmap.h File src/hashmap.h (right): ...
5 years, 8 months ago (2015-04-10 07:59:58 UTC) #3
yangguo
On 2015/04/10 07:59:58, marja wrote: > lgtm, I think this API is clearer than the ...
5 years, 8 months ago (2015-04-10 20:47:52 UTC) #4
yangguo
On 2015/04/10 07:59:58, marja wrote: > lgtm, I think this API is clearer than the ...
5 years, 8 months ago (2015-04-10 20:47:53 UTC) #5
adamk
https://codereview.chromium.org/1074943002/diff/20001/src/hashmap.h File src/hashmap.h (right): https://codereview.chromium.org/1074943002/diff/20001/src/hashmap.h#newcode118 src/hashmap.h:118: return p->key != NULL ? p : NULL; On ...
5 years, 8 months ago (2015-04-13 18:34:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1074943002/20001
5 years, 8 months ago (2015-04-13 18:35:03 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-13 19:01:20 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-13 19:01:32 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5277c41044d94ce6452e5fcf6ed703d6c1dcfe4b
Cr-Commit-Position: refs/heads/master@{#27799}

Powered by Google App Engine
This is Rietveld 408576698