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

Issue 1698483002: [arm][arm64] Improve CountTrailingZero implementation. (Closed)

Created:
4 years, 10 months ago by Rodolph Perfetta (ARM)
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Added a ReverseBits operator and used it to implement Ctz. Let me know if this is not the right approach Committed: https://crrev.com/0dfd7bcdaf38b974bdbb3f035059e5611ffc746b Cr-Commit-Position: refs/heads/master@{#34028}

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -22 lines) Patch
M src/arm/assembler-arm.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M src/arm/disasm-arm.cc View 1 chunk +7 lines, -1 line 0 comments Download
M src/arm/simulator-arm.cc View 1 1 chunk +9 lines, -1 line 0 comments Download
M src/arm64/simulator-arm64.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm64/utils-arm64.h View 1 1 chunk +0 lines, -13 lines 0 comments Download
M src/base/bits.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/compiler/arm/code-generator-arm.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/arm/instruction-codes-arm.h View 2 chunks +1 line, -1 line 0 comments Download
M src/compiler/arm/instruction-scheduler-arm.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/arm/instruction-selector-arm.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/compiler/arm64/code-generator-arm64.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-codes-arm64.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/arm64/instruction-scheduler-arm64.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 2 chunks +13 lines, -1 line 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download
M src/compiler/machine-operator.h View 2 chunks +6 lines, -1 line 0 comments Download
M src/compiler/machine-operator.cc View 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/mips/instruction-selector-mips.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/mips64/instruction-selector-mips64.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/opcodes.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/ppc/instruction-selector-ppc.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/typer.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M src/compiler/verifier.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/x87/instruction-selector-x87.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 2 chunks +38 lines, -0 lines 0 comments Download
M test/cctest/test-assembler-arm.cc View 1 chunk +49 lines, -0 lines 0 comments Download
M test/cctest/test-disasm-arm.cc View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Rodolph Perfetta (ARM)
4 years, 10 months ago (2016-02-12 17:19:45 UTC) #3
titzer
Looks mostly good. Can you also add some tests to test/cctest/compiler/test-run-machops for the two new ...
4 years, 10 months ago (2016-02-14 11:18:35 UTC) #4
Rodolph Perfetta
New tests added. https://codereview.chromium.org/1698483002/diff/1/src/arm/simulator-arm.cc File src/arm/simulator-arm.cc (right): https://codereview.chromium.org/1698483002/diff/1/src/arm/simulator-arm.cc#newcode2650 src/arm/simulator-arm.cc:2650: static uint32_t ReverseBits(uint32_t value) { On ...
4 years, 10 months ago (2016-02-15 17:56:01 UTC) #6
titzer
lgtm
4 years, 10 months ago (2016-02-16 07:55:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1698483002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1698483002/20001
4 years, 10 months ago (2016-02-16 10:46:12 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-16 11:14:06 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 11:14:36 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0dfd7bcdaf38b974bdbb3f035059e5611ffc746b
Cr-Commit-Position: refs/heads/master@{#34028}

Powered by Google App Engine
This is Rietveld 408576698