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

Issue 532003004: Generalized division via multiplication. (Closed)

Created:
6 years, 3 months ago by Sven Panne
Modified:
6 years, 3 months ago
Reviewers:
Benedikt Meurer
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Generalized division via multiplication. We can now compute the magic numbers for all combinations of 32bit and 64bit (un)signed multiplications. R=bmeurer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=23730

Patch Set 1 #

Patch Set 2 : Moved stuff around. Added unit tests. Build fixes. #

Patch Set 3 : Refactored tests. #

Patch Set 4 : Simplified #

Total comments: 1

Patch Set 5 : Removed superfluous include #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -78 lines) Patch
M BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M src/assembler.h View 1 1 chunk +0 lines, -14 lines 0 comments Download
M src/assembler.cc View 1 1 chunk +0 lines, -34 lines 0 comments Download
M src/base/base.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/base/division-by-constant.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A src/base/division-by-constant.cc View 1 2 1 chunk +115 lines, -0 lines 0 comments Download
A src/base/division-by-constant-unittest.cc View 1 2 3 4 1 chunk +132 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M src/x87/macro-assembler-x87.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
Sven Panne
The call sites could be nicer, but I want to land this drop-in replacement first ...
6 years, 3 months ago (2014-09-03 14:31:28 UTC) #2
Benedikt Meurer
Hm, I don't think this is the right approach. And didn't we decide that we ...
6 years, 3 months ago (2014-09-04 04:20:45 UTC) #3
Sven Panne
Moved stuff around as discussed offline, added unit tests. PTAL...
6 years, 3 months ago (2014-09-04 12:27:36 UTC) #4
Sven Panne
As discussed offline: Removed the helper functions containing EXPECT_EQ. PTAL...
6 years, 3 months ago (2014-09-05 10:31:29 UTC) #13
Benedikt Meurer
LGTM with comment. https://codereview.chromium.org/532003004/diff/220001/src/base/division-by-constant-unittest.cc File src/base/division-by-constant-unittest.cc (right): https://codereview.chromium.org/532003004/diff/220001/src/base/division-by-constant-unittest.cc#newcode11 src/base/division-by-constant-unittest.cc:11: #include "src/base/macros.h" You should not need ...
6 years, 3 months ago (2014-09-05 11:15:19 UTC) #14
Sven Panne
On 2014/09/05 11:15:19, Benedikt Meurer wrote: > LGTM with comment. > > https://codereview.chromium.org/532003004/diff/220001/src/base/division-by-constant-unittest.cc > File ...
6 years, 3 months ago (2014-09-05 11:42:29 UTC) #15
Sven Panne
6 years, 3 months ago (2014-09-05 11:49:04 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:260001) manually as 23730 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698