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

Issue 5860009: Fix bugs in the range analysis for integers.... (Closed)

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

Description

Fix bugs in the range analysis for integers. The overflow conditions were not correctly detected for certain add, sub and mul instructions. I replaced the previous code by using 64-bit arithmetic to correctly identify overflows for *, + and -. Committed: http://code.google.com/p/v8/source/detail?r=6055

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -75 lines) Patch
M src/hydrogen.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 chunks +4 lines, -1 line 1 comment Download
M src/hydrogen-instructions.cc View 1 3 chunks +29 lines, -72 lines 0 comments Download
A test/mjsunit/compiler/regress-intoverflow.js View 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
fschneider
10 years ago (2010-12-16 17:40:13 UTC) #1
Vyacheslav Egorov (Chromium)
10 years ago (2010-12-16 17:48:09 UTC) #2
LGTM

http://codereview.chromium.org/5860009/diff/5001/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):

http://codereview.chromium.org/5860009/diff/5001/src/hydrogen-instructions.h#...
src/hydrogen-instructions.h:337: void AddConstant(int32_t value);
Comment what this function does to this Range.

Powered by Google App Engine
This is Rietveld 408576698