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

Issue 509001: Bring back the fisttp instruction on machines with SSE3, but check the... (Closed)

Created:
11 years ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Bring back the fisttp instruction on machines with SSE3, but check the input so we don't have to check the exception flags afterwards. Committed: http://code.google.com/p/v8/source/detail?r=3504

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -95 lines) Patch
M src/ia32/assembler-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 6 chunks +115 lines, -94 lines 0 comments Download
M test/mjsunit/smi-ops.js View 2 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Erik Corry
11 years ago (2009-12-20 10:16:57 UTC) #1
Lasse Reichstein
Drive by review, but LGTM. http://codereview.chromium.org/509001/diff/1/2 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/509001/diff/1/2#newcode7446 src/ia32/codegen-ia32.cc:7446: __ j(greater, conversion_failure); Naming: ...
11 years ago (2009-12-20 11:32:11 UTC) #2
sra1
http://codereview.chromium.org/509001/diff/1/2 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/509001/diff/1/2#newcode7446 src/ia32/codegen-ia32.cc:7446: __ j(greater, conversion_failure); On 2009/12/20 11:32:12, Lasse Reichstein wrote: ...
11 years ago (2009-12-20 19:42:07 UTC) #3
Erik Corry
11 years ago (2009-12-21 10:14:13 UTC) #4
http://codereview.chromium.org/509001/diff/1004/1005
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/509001/diff/1004/1005#newcode7452
src/ia32/codegen-ia32.cc:7452: __ fnclex();
I added some testing here to ensure that there were no corner cases that were
causing uncaught exceptions.  This will be removed again.  Together with the CPU
instruction set doc and the new smi-ops.js test I am confident that this is
sound.  On the other hand I had to insert the fnclex instruction because
something in the system is leaving errors in the FPU processor status word
somewhere else in the VM.  I don't think this is a problem though it is worth
bearing in mind for future code that uses fnstsw_ax.

Powered by Google App Engine
This is Rietveld 408576698