http://bugs.winehq.org/show_bug.cgi?id=30465
--- Comment #5 from Ulrik Dickow u.dickow@gmail.com 2012-04-17 06:55:24 CDT --- Created attachment 39837 --> http://bugs.winehq.org/attachment.cgi?id=39837 Perl script replacing 387 code with SSE2 equivalent in mozjs.dll for Gecko 1.4+1.5
This Perl script is a useful quick-fix for all wine users hit by "Invalid floating point operation" caused by invalid double-to-int32 conversions in JSDOUBLE_IS_INT32 in either Gecko 1.4 or 1.5. It replaces the old, slow and exception-prone 387 instructions with the equivalent SSE2 instructions. It won't work on very old cpus without the SSE2 instruction set.
The script does a rather trivial binary substitution. You must apply it to the DEBUG version of mozjs.dll in order for it to work.
With a mozjs.dll fixed by this script, BridgeCentral is completely stable, without any crash, during hours of network connection. Not surprising, in view of the small test program previously submitted.