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

Issue 339002: Change NaN-test to only check for QNaNs, and API to only introduce QNaNs. (Closed)

Created:
11 years, 1 month ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Change NaN-test to only check for QNaNs, and API to only introduce QNaNs.

Patch Set 1 #

Patch Set 2 : Reordered operations in NaN-check. #

Total comments: 2

Patch Set 3 : Added comments, named constant, added test. #

Total comments: 2

Patch Set 4 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -28 lines) Patch
M src/api.cc View 2 chunks +8 lines, -0 lines 0 comments Download
src/globals.h View 1 chunk +9 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 1 chunk +12 lines, -13 lines 0 comments Download
M src/platform-win32.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 1 chunk +12 lines, -13 lines 0 comments Download
test/cctest/test-api.cc View 3 1 chunk +101 lines, -0 lines 0 comments Download
M test/cctest/test-macro-assembler-x64.cc View 5 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Lasse Reichstein
Small change to disallow Signaling NaNs, and optimize NaN-recognition. And a test bugfix too.
11 years, 1 month ago (2009-10-26 08:33:11 UTC) #1
Erik Corry
http://codereview.chromium.org/339002/diff/2001/3002 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/339002/diff/2001/3002#newcode7408 Line 7408: __ cmp(eax, 0xFFF00000u); ¿Que?
11 years, 1 month ago (2009-10-26 08:43:12 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/339002/diff/2001/3002 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/339002/diff/2001/3002#newcode7408 Line 7408: __ cmp(eax, 0xFFF00000u); Stoopid last minute change gone ...
11 years, 1 month ago (2009-10-26 08:45:39 UTC) #3
Erik Corry
The large hex constants need to be given names. Eg kQuietNaNMask32 kQuietNaNMask64 and then assert ...
11 years, 1 month ago (2009-10-26 08:52:02 UTC) #4
Lasse Reichstein
Named constants. Added test.
11 years, 1 month ago (2009-10-26 12:11:18 UTC) #5
Erik Corry
http://codereview.chromium.org/339002/diff/6001/7003 File src/platform-win32.cc (right): http://codereview.chromium.org/339002/diff/6001/7003#newcode1336 Line 1336: static const __int64 nanval = 0x7ff8000000000000; kQuietNaNMask << ...
11 years, 1 month ago (2009-10-26 12:21:51 UTC) #6
Lasse Reichstein
11 years, 1 month ago (2009-10-27 08:06:44 UTC) #7
http://codereview.chromium.org/339002/diff/6001/7003
File src/platform-win32.cc (right):

http://codereview.chromium.org/339002/diff/6001/7003#newcode1336
Line 1336: static const __int64 nanval = 0x7ff8000000000000;
Fixed. (Added a 64-bit mask as well, and used it here).

Powered by Google App Engine
This is Rietveld 408576698