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

Issue 16951016: MIPS: Optimise Math.floor(x/y) to use integer division for MIPS. (Closed)

Created:
7 years, 6 months ago by palfia
Modified:
7 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

MIPS: Optimise Math.floor(x/y) to use integer division for MIPS. Use div instruction if some divisors do not have magic number. Based on commit r11427 (318a9598). This commit also ports commit r15161 (554d45c1). BUG= Committed: https://code.google.com/p/v8/source/detail?r=15181

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased on r15174. #

Patch Set 3 : Address comments & fix test failure: math-floor-of-div #

Total comments: 2

Patch Set 4 : Generic MathFloorOfDiv. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -5 lines) Patch
M src/hydrogen-instructions.cc View 1 3 2 chunks +0 lines, -3 lines 0 comments Download
M src/mips/lithium-codegen-mips.h View 1 chunk +11 lines, -0 lines 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 3 2 chunks +167 lines, -0 lines 0 comments Download
M src/mips/lithium-mips.h View 3 chunks +23 lines, -0 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 chunk +49 lines, -2 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
palfia
Hi Jakob, This change also contains the port of r15161. PTAL.
7 years, 6 months ago (2013-06-14 16:04:45 UTC) #1
Jakob Kummerow
Hydrogen and mjsunit changes LGTM. I have not reviewed the src/mips/* changes in detail. You'll ...
7 years, 6 months ago (2013-06-14 16:33:33 UTC) #2
Paul Lind
The MIPS part LGTM, if you address the 2 comments. https://codereview.chromium.org/16951016/diff/1/src/mips/lithium-codegen-mips.cc File src/mips/lithium-codegen-mips.cc (right): https://codereview.chromium.org/16951016/diff/1/src/mips/lithium-codegen-mips.cc#newcode1187 ...
7 years, 6 months ago (2013-06-14 16:34:58 UTC) #3
palfia
Hi Jakob and Paul, I addressed your comments and also added a fix for MIPS ...
7 years, 6 months ago (2013-06-15 00:15:25 UTC) #4
Paul Lind
Jakob, we followed the arm port too closely here, and we do not have the ...
7 years, 6 months ago (2013-06-17 04:27:27 UTC) #5
Jakob Kummerow
On 2013/06/17 04:27:27, Paul Lind wrote: > Jakob, we followed the arm port too closely ...
7 years, 6 months ago (2013-06-17 07:07:00 UTC) #6
palfia
Hi Jakob and Paul, I uploaded the new, more generic MathFloorOfDiv, and removed the restriction ...
7 years, 6 months ago (2013-06-17 11:31:37 UTC) #7
Jakob Kummerow
Hydrogen and mjsunit changes still LGTM. Glancing at src/mips/lithium-codegen-mips.cc, I'm a bit surprised that you've ...
7 years, 6 months ago (2013-06-17 11:55:10 UTC) #8
palfia
On 2013/06/17 11:55:10, Jakob wrote: > Hydrogen and mjsunit changes still LGTM. > > Glancing ...
7 years, 6 months ago (2013-06-17 13:05:15 UTC) #9
Jakob Kummerow
On 2013/06/17 13:05:15, palfia wrote: > However, I just looked into the Intel implementation of ...
7 years, 6 months ago (2013-06-17 13:47:17 UTC) #10
Paul Lind
LGTM, thanks for the fixes.
7 years, 6 months ago (2013-06-17 14:26:02 UTC) #11
palfia
7 years, 6 months ago (2013-06-17 15:06:51 UTC) #12
Message was sent while issue was closed.
Committed manually as r15181 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698