X87: fix the Sqrt issue.
authorweiliang.lin@intel.com <weiliang.lin@intel.com>
Mon, 29 Sep 2014 08:39:05 +0000 (08:39 +0000)
committerweiliang.lin@intel.com <weiliang.lin@intel.com>
Mon, 29 Sep 2014 08:39:05 +0000 (08:39 +0000)
commit6a7cc6cc61593fece34007e876c9d4ca33a77b85
treedbac2d9abd6f3b752c546f14e0d5d78c5920acc3
parent89ee8ec1b15b3b4583bdb71e822188e0ae0d4afd
X87:  fix the Sqrt issue.

   The test mjsunit/regress/regress-sqrt compares the result of Math.sqrt function
   when using full-compiler and crankshaft compiler seperately. But according to
   glibc bug fixing(https://sourceware.org/bugzilla/show_bug.cgi?id=14032). The
   glibc implementation of std::sqrt() (It is invoked in the generated code when
   full-compiler is used.) will change since glibc 2.19.

   In order to keep consistence of Math.sqrt translation in crankshaft compiler
   and the pass of mjsunit/regress/regress-sqrt. we translate the Math.sqrt func
   by calling the runtime function.

BUG=
R=weiliang.lin@intel.com

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

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24271 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/x87/lithium-codegen-x87.cc
src/x87/lithium-x87.cc
src/x87/lithium-x87.h