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

Issue 300004: X64 Win64: Reimplement fmod so that it works. (Closed)

Created:
11 years, 2 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

X64 Win64: Reimplement fmod so that it works.

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed review comments, made it work, reduced complexity. #

Patch Set 3 : Removed left-over debug change #

Patch Set 4 : And it lints. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -17 lines) Patch
M src/arm/codegen-arm.h View 1 chunk +3 lines, -0 lines 2 comments Download
M src/arm/codegen-arm.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/codegen.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M src/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 2 chunks +11 lines, -2 lines 0 comments Download
M src/runtime.js View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/assembler-x64.h View 1 2 3 5 chunks +31 lines, -1 line 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 4 chunks +86 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 3 chunks +145 lines, -8 lines 1 comment Download
M src/x64/disasm-x64.cc View 1 chunk +26 lines, -4 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +5 lines, -0 lines 2 comments Download
M test/mjsunit/div-mod.js View 1 2 chunks +71 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein
Kevin, could you please check the frame-interaction in codegen-x64.cc / GenerateNumberMod() ? I have a ...
11 years, 2 months ago (2009-10-19 13:03:21 UTC) #1
Kevin Millikin (Chromium)
We should meet to see if we can figure out a simpler way to do ...
11 years, 2 months ago (2009-10-19 15:42:15 UTC) #2
Lasse Reichstein
Bill, please review the change in general. Kevin, could you do a quick check that ...
11 years, 2 months ago (2009-10-20 10:39:11 UTC) #3
William Hesse
http://codereview.chromium.org/300004/diff/5020/4003 File src/arm/codegen-arm.h (right): http://codereview.chromium.org/300004/diff/5020/4003#newcode379 Line 379: // Potentially alternative support for modulo operation on ...
11 years, 2 months ago (2009-10-20 14:50:51 UTC) #4
William Hesse
Isn't there a simpler way to do this? If not, say why in the comments.
11 years, 2 months ago (2009-10-20 14:56:38 UTC) #5
Lasse Reichstein
11 years, 2 months ago (2009-10-22 11:22:53 UTC) #6
I think there is a simpler way (that also fixes other uses of fmod), and I'm
trying that instead.

http://codereview.chromium.org/300004/diff/5020/4003
File src/arm/codegen-arm.h (right):

http://codereview.chromium.org/300004/diff/5020/4003#newcode379
Line 379: // Potentially alternative support for modulo operation on numbers.
It generates code to compute x % y. It's "potential" because it should only be
used on 64-bit Windows.

http://codereview.chromium.org/300004/diff/5020/4015
File src/x64/macro-assembler-x64.cc (right):

http://codereview.chromium.org/300004/diff/5020/4015#newcode1316
Line 1316: 
I'm dropping this approach, going for a replacement of fmod at the C++ level
instead, but I'll save this change and see if it makes sense on its own.

Powered by Google App Engine
This is Rietveld 408576698