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

Issue 975283002: Use Rotate*() functions instead of doing this manually. (Closed)

Created:
5 years, 9 months ago by Nico
Modified:
5 years, 9 months ago
CC:
hans, v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Use Rotate*() functions instead of doing this manually. Shouldn't make a difference in practice, but it's a bit more readable and it gets the case of a 0 shift correct without undefined behavior. BUG=463436 LOG=N Committed: https://crrev.com/b97df837524de92ef91aa9b1639e1d02101769ff Cr-Commit-Position: refs/heads/master@{#26975}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -25 lines) Patch
M src/arm/assembler-arm.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/arm/disasm-arm.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/arm/simulator-arm.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M src/base/bits.h View 1 chunk +13 lines, -0 lines 2 comments Download
M src/mips/simulator-mips.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/mips64/simulator-mips64.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M src/ppc/simulator-ppc.cc View 1 8 chunks +8 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Nico
Small follow-up.
5 years, 9 months ago (2015-03-04 05:32:20 UTC) #2
Benedikt Meurer
LGTM. Thanks for the cleanup.
5 years, 9 months ago (2015-03-04 05:46:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/975283002/20001
5 years, 9 months ago (2015-03-04 05:51:56 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-04 05:53:10 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/b97df837524de92ef91aa9b1639e1d02101769ff Cr-Commit-Position: refs/heads/master@{#26975}
5 years, 9 months ago (2015-03-04 05:53:40 UTC) #8
hans
https://codereview.chromium.org/975283002/diff/20001/src/base/bits.h File src/base/bits.h (right): https://codereview.chromium.org/975283002/diff/20001/src/base/bits.h#newcode151 src/base/bits.h:151: // Precondition: 0 <= shift < 32 Any reason ...
5 years, 9 months ago (2015-03-04 06:02:51 UTC) #10
Nico
5 years, 9 months ago (2015-03-04 06:21:10 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/975283002/diff/20001/src/base/bits.h
File src/base/bits.h (right):

https://codereview.chromium.org/975283002/diff/20001/src/base/bits.h#newcode151
src/base/bits.h:151: // Precondition: 0 <= shift < 32
On 2015/03/04 06:02:51, hans wrote:
> Any reason the preconditions are not some kind of assert or check?

I was worried that this might be performance-critical and things might get very
slow in debug builds. I don't know if that's true.

Powered by Google App Engine
This is Rietveld 408576698