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

Issue 14617014: Fixed constant folding in HMod. (Closed)

Created:
7 years, 7 months ago by Sven Panne
Modified:
7 years, 7 months ago
Reviewers:
mvstanton
CC:
v8-dev
Visibility:
Public.

Description

Fixed constant folding in HMod. We have to check for overflow before attempting to do a modulo operation, otherwise Crankshaft itself segfaults on some platforms, e.g. ia32. Added tests even for division, where the problem doesn't show up, just to be sure... R=mvstanton@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=14629

Patch Set 1 #

Patch Set 2 : Improved fix and test #

Total comments: 2

Patch Set 3 : Rebased. Fixed unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M src/hydrogen-instructions.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test/mjsunit/constant-folding-2.js View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
7 years, 7 months ago (2013-05-10 14:40:54 UTC) #1
mvstanton
lgtm, but one question in the test. https://codereview.chromium.org/14617014/diff/2001/test/mjsunit/constant-folding-2.js File test/mjsunit/constant-folding-2.js (right): https://codereview.chromium.org/14617014/diff/2001/test/mjsunit/constant-folding-2.js#newcode266 test/mjsunit/constant-folding-2.js:266: assertEquals(2147483648, -2147483648 ...
7 years, 7 months ago (2013-05-13 07:10:08 UTC) #2
Sven Panne
https://codereview.chromium.org/14617014/diff/2001/test/mjsunit/constant-folding-2.js File test/mjsunit/constant-folding-2.js (right): https://codereview.chromium.org/14617014/diff/2001/test/mjsunit/constant-folding-2.js#newcode266 test/mjsunit/constant-folding-2.js:266: assertEquals(2147483648, -2147483648 * (-1)); On 2013/05/13 07:10:08, mvstanton wrote: ...
7 years, 7 months ago (2013-05-13 07:22:34 UTC) #3
Sven Panne
7 years, 7 months ago (2013-05-13 07:32:44 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r14629 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698