ARM: Tweak ECMAToInt32VFP to address regression on Nexus 4
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Mar 2013 15:28:15 +0000 (15:28 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Mar 2013 15:28:15 +0000 (15:28 +0000)
commit80f490085f41b6b53412f420ffbc77b6f63729f2
treebb210ce9fdebecc885d8d2297749f86f52ef6b62
parent6e86d34ba9aa381e48d4086e909b647cf58053a8
ARM: Tweak ECMAToInt32VFP to address regression on Nexus 4

After r13912, we saw a small regression in Kraken crypto-aes and
crypto-ccm on Nexus 4. This patch, proposed by Rodolph Perfetta,
addresses that without regressing other platforms.

Instead of looking at the exponent of double_input and trying to figure
out if the conversion will overflow, eagerly do the VCVT and return
early unless it saturated.

BUG=none

Review URL: https://chromiumcodereview.appspot.com/12544025
Patch from Hans Wennborg <hans@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13948 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/macro-assembler-arm.cc