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

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)

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

Description

Instead of having a hashmap with a function pointer defining its matching function, creates a hashmap the specialises the case of keys that simply check pointer equality. I measure an average ~1% improvement on Octane code-load. Committed: https://crrev.com/050bf39d85e592f86bfb89c7ea6819a3e152dd00 Cr-Commit-Position: refs/heads/master@{#39920}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove default constructors #

Patch Set 3 : Fix parameter order in constant array builder and mips simulator #

Patch Set 4 : Fix the other simulators #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -182 lines) Patch
M src/arm/simulator-arm.h View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M src/arm/simulator-arm.cc View 1 2 3 6 chunks +11 lines, -7 lines 0 comments Download
M src/arm64/simulator-arm64.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M src/arm64/simulator-arm64.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/asmjs/asm-typer.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/asmjs/asm-wasm-builder.cc View 1 3 chunks +5 lines, -10 lines 0 comments Download
M src/ast/ast.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/ast/ast.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/ast/ast-value-factory.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/scopes.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/base/hashmap.h View 1 6 chunks +31 lines, -15 lines 0 comments Download
M src/bootstrapper.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/state-values-utils.h View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen-bce.h View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen-bce.cc View 1 chunk +9 lines, -8 lines 0 comments Download
M src/d8.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/heap/heap.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap/mark-compact.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/heap/spaces.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/constant-array-builder.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/mips/simulator-mips.h View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M src/mips/simulator-mips.cc View 1 2 6 chunks +15 lines, -10 lines 0 comments Download
M src/mips64/simulator-mips64.h View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M src/mips64/simulator-mips64.cc View 1 2 3 6 chunks +11 lines, -8 lines 0 comments Download
M src/parsing/duplicate-finder.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ppc/simulator-ppc.h View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M src/ppc/simulator-ppc.cc View 1 2 3 6 chunks +11 lines, -9 lines 0 comments Download
M src/profiler/heap-snapshot-generator.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/profiler/heap-snapshot-generator.cc View 1 1 chunk +1 line, -9 lines 0 comments Download
M src/profiler/profile-generator.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/profiler/strings-storage.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime/runtime.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M src/s390/simulator-s390.h View 1 2 3 4 chunks +10 lines, -6 lines 0 comments Download
M src/s390/simulator-s390.cc View 1 2 3 6 chunks +11 lines, -7 lines 0 comments Download
M src/zone/zone.h View 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 3 chunks +4 lines, -9 lines 0 comments Download
M test/cctest/test-hashmap.cc View 1 1 chunk +1 line, -5 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 2 chunks +2 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (16 generated)
Leszek Swirski
Hi Toon, this is my CL for specialising hashmaps that only check pointer equality. Right ...
4 years, 2 months ago (2016-09-26 16:33:44 UTC) #2
Toon Verwaest
lgtm
4 years, 2 months ago (2016-09-27 12:46:36 UTC) #4
Leszek Swirski
jpp@chromium.org: Please review changes in asmjs marja@chromium.org: Please review changes in parsing (and maybe ast, ...
4 years, 2 months ago (2016-09-28 15:42:20 UTC) #7
Michael Starzinger
LGTM (rubber-stamp of "compiler" and "heap", didn't look at the rest).
4 years, 2 months ago (2016-09-29 09:28:32 UTC) #8
marja
lgtm % style nits below I was for a moment thinking about the parameter order, ...
4 years, 2 months ago (2016-09-30 10:27:33 UTC) #9
Leszek Swirski
Thanks Marja! I hear you about the constructor order problem -- I entertained the idea ...
4 years, 2 months ago (2016-09-30 10:44:28 UTC) #10
John
lgtm
4 years, 2 months ago (2016-09-30 16:13:35 UTC) #20
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/2369963002/60001
4 years, 2 months ago (2016-09-30 16:13:47 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-30 16:16:55 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 16:17:16 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/050bf39d85e592f86bfb89c7ea6819a3e152dd00
Cr-Commit-Position: refs/heads/master@{#39920}

Powered by Google App Engine
This is Rietveld 408576698