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

Issue 9638018: [v8-dev] Optimise Math.floor(x/y) to use integer division for specific divisor.... (Closed)

Created:
8 years, 9 months ago by Rodolph Perfetta
Modified:
8 years, 8 months ago
CC:
v8-dev
Visibility:
Public.

Description

Optimise Math.floor(x/y) to use integer division for specific divisor. BUG=none TEST=mjsunit/math-floor-of-div.js Landing for Rodolph Perfetta <rodolph.perfetta@gmail.com>;. Committed: https://code.google.com/p/v8/source/detail?r=11420

Patch Set 1 #

Total comments: 20

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+628 lines, -24 lines) Patch
M src/arm/lithium-arm.h View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 2 chunks +122 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 3 1 chunk +21 lines, -8 lines 0 comments Download
M src/compiler-intrinsics.h View 1 2 3 3 chunks +24 lines, -0 lines 0 comments Download
M src/frames.cc View 1 2 3 1 chunk +1 line, -6 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 3 chunks +21 lines, -9 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/utils.h View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M src/utils.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A test/mjsunit/math-floor-of-div.js View 1 2 1 chunk +216 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Rodolph Perfetta
This supercedes our "optimise bitwise operations" patch.
8 years, 9 months ago (2012-03-08 16:59:07 UTC) #1
danno
Adding Florian, who should review this
8 years, 9 months ago (2012-03-09 11:39:09 UTC) #2
fschneider
On 2012/03/09 11:39:09, danno wrote: > Adding Florian, who should review this I did not ...
8 years, 9 months ago (2012-03-20 10:27:39 UTC) #3
fschneider
Sorry for the long delay. Here are my comments: The approach looks good. http://codereview.chromium.org/9638018/diff/1/src/arm/lithium-codegen-arm.cc File ...
8 years, 9 months ago (2012-03-28 09:59:18 UTC) #4
Alexandre
Thanks for the review. I addressed your comments and created an issue (2038) for the ...
8 years, 9 months ago (2012-03-28 16:27:38 UTC) #5
Rodolph Perfetta
new patch with comments addressed
8 years, 8 months ago (2012-03-30 12:14:34 UTC) #6
Alexandre
Hello, Any news on this? Thanks, Alexandre
8 years, 8 months ago (2012-04-16 10:33:05 UTC) #7
fschneider
LGTM. Two small comments. I can fix them before landing if it makes sense. What ...
8 years, 8 months ago (2012-04-17 07:41:10 UTC) #8
Alexandre
I agree with your comments. It is great if you can fix them and land. ...
8 years, 8 months ago (2012-04-17 10:01:50 UTC) #9
alexeif
https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h File src/utils.h (right): https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h#newcode112 src/utils.h:112: const DivMagicNumbers DivMagicNumberFor625 = {0x68db8bad, 8}; How about adding ...
8 years, 8 months ago (2012-04-17 16:59:28 UTC) #10
Alexandre
https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h File src/utils.h (right): https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h#newcode112 src/utils.h:112: const DivMagicNumbers DivMagicNumberFor625 = {0x68db8bad, 8}; We can generate ...
8 years, 8 months ago (2012-04-17 17:12:22 UTC) #11
alexeif
https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h File src/utils.h (right): https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h#newcode112 src/utils.h:112: const DivMagicNumbers DivMagicNumberFor625 = {0x68db8bad, 8}; On 2012/04/17 17:12:22, ...
8 years, 8 months ago (2012-04-17 18:30:25 UTC) #12
Alexandre
https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h File src/utils.h (right): https://chromiumcodereview.appspot.com/9638018/diff/13001/src/utils.h#newcode112 src/utils.h:112: const DivMagicNumbers DivMagicNumberFor625 = {0x68db8bad, 8}; Fair question! I ...
8 years, 8 months ago (2012-04-18 09:03:58 UTC) #13
Zheng Liu
Hi. I proposed a x86/x64 implementation in issue 2038: http://code.google.com/p/v8/issues/detail?id=2038 which depends on this patch. ...
8 years, 8 months ago (2012-04-18 10:28:56 UTC) #14
Rodolph Perfetta
comments addressed.
8 years, 8 months ago (2012-04-20 18:14:17 UTC) #15
fschneider
LGTM. We'll land it.
8 years, 8 months ago (2012-04-23 17:29:58 UTC) #16
Rodolph Perfetta
Comments addressed.
8 years, 8 months ago (2012-04-24 15:25:14 UTC) #17
fschneider
8 years, 8 months ago (2012-04-24 15:36:54 UTC) #18
Thanks. Still LGTM.

I'll re-land it

Powered by Google App Engine
This is Rietveld 408576698