Optimize bitops with non-Smi inputs. Instead of converting both inputs
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 18 Dec 2009 09:33:24 +0000 (09:33 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 18 Dec 2009 09:33:24 +0000 (09:33 +0000)
commit0553c7feb961408bee646c6d249f3324e898afce
treea53517f498e0f3bd0f69cca47fcadc07a1f821d1
parentc7c821fdfb79567a57f1cbae950676b7b3a97d4e
Optimize bitops with non-Smi inputs.  Instead of converting both inputs
to floating point and then converting back we convert directly to a
32 bit integer.  In addition the bit twiddling implementation of float-
to-integer conversion has been ported from ARM.  Testing has shown that
this runs faster than the x87 or SSE3 rounding instructions.  This change
is IA32 only.  There may be a smaller benefit from doing the same on x64.
Review URL: http://codereview.chromium.org/506052

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3492 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/codegen.h
src/ia32/codegen-ia32.cc