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

Issue 4247004: Change the utils WhichPowerOf2 function to use a simpler algorithm. (Closed)

Created:
10 years, 1 month ago by William Hesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix a potential error in Add() macro-instruction on ARM. Committed: http://code.google.com/p/v8/source/detail?r=5769

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -21 lines) Patch
M src/arm/assembler-arm.h View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 2 3 4 6 chunks +8 lines, -9 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 2 3 4 1 chunk +12 lines, -12 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
William Hesse
A fun review for you.
10 years, 1 month ago (2010-11-03 14:19:34 UTC) #1
Mads Ager (chromium)
Cute. One question below. http://codereview.chromium.org/4247004/diff/1/3 File src/utils.h (right): http://codereview.chromium.org/4247004/diff/1/3#newcode53 src/utils.h:53: static inline int WhichPowerOf2(T x) ...
10 years, 1 month ago (2010-11-03 14:36:21 UTC) #2
William Hesse
Unfortunately, checking the single place this function is used showed a potential bug there, which ...
10 years, 1 month ago (2010-11-03 16:18:20 UTC) #3
Mads Ager (chromium)
LGTM
10 years, 1 month ago (2010-11-03 17:05:06 UTC) #4
William Hesse
10 years, 1 month ago (2010-11-04 15:32:20 UTC) #5
The function is only used in one place, which is on the ARM platform, it is
barely ever hit, and the old version is faster on ARM.  

Only fixing the ARM bug.

On 2010/11/03 17:05:06, Mads Ager wrote:
> LGTM

Powered by Google App Engine
This is Rietveld 408576698