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

Issue 2876011: Do integer mod via sum-of-digits technique. This benefits the date (Closed)

Created:
10 years, 6 months ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Do integer mod via sum-of-digits technique. This benefits the date code. Committed: http://code.google.com/p/v8/source/detail?r=4964

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -23 lines) Patch
M src/arm/codegen-arm.h View 1 chunk +68 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 13 chunks +232 lines, -14 lines 1 comment Download
M src/arm/ic-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/macro-assembler-arm.h View 1 chunk +6 lines, -4 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/mod.js View 1 chunk +38 lines, -0 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Erik Corry
10 years, 6 months ago (2010-06-25 19:10:17 UTC) #1
Søren Thygesen Gjesse
10 years, 5 months ago (2010-06-28 07:19:36 UTC) #2
LGTM

http://codereview.chromium.org/2876011/diff/1/2
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/2876011/diff/1/2#newcode6266
src/arm/codegen-arm.cc:6266: void DigitSum(MacroAssembler* masm,
static (times 5)? And why are these functions not just private members of the
IntegerModStub?

http://codereview.chromium.org/2876011/diff/1/8
File test/mjsunit/mod.js (right):

http://codereview.chromium.org/2876011/diff/1/8#newcode31
test/mjsunit/mod.js:31: m = i % j;
This kind of assumes that -((-i) % j) is not handled by the new code. Currently
it isn't, but it might be extended to do that. How about adding a %TestModulus
to runtime.cc which just calls fmod instead?

Powered by Google App Engine
This is Rietveld 408576698