Set the FPU precision control to double-precision.
authorweiliang.lin@intel.com <weiliang.lin@intel.com>
Wed, 5 Nov 2014 06:20:36 +0000 (06:20 +0000)
committerweiliang.lin@intel.com <weiliang.lin@intel.com>
Wed, 5 Nov 2014 06:21:50 +0000 (06:21 +0000)
commit813b071b3059081f42bd85ee3078b4d677a0eb14
tree8c2c15976652fcbd6518d6983129edae4d355fdd
parentc12a127faefa99e4759613f42ccb41f1a828b962
Set the FPU precision control to double-precision.

The default double precision control of FPU is extended double-precision.
While the number definition for JavaScript is double-precision. We use
the FPU control word to set the doulbe precision and replace the original
solution which store the data to memory and load it again.

This patch also fixes the error that Sunspider 1.0.2 can not run with V8 if
sse2 support is disabled.

BUG=
R=weiliang.lin@intel.com

Review URL: https://codereview.chromium.org/700053003

Patch from Chunyang Dai <chunyang.dai@intel.com>.

Cr-Commit-Position: refs/heads/master@{#25125}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25125 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/x87/lithium-codegen-x87.cc
src/x87/macro-assembler-x87.cc
src/x87/macro-assembler-x87.h