http://codereview.chromium.org/9583037/diff/1/src/x64/code-stubs-x64.cc File src/x64/code-stubs-x64.cc (right):
http://codereview.chromium.org/9583037/diff/1/src/x64/code-stubs-x64.cc#newcode1729 src/x64/code-stubs-x64.cc:1729: // NaN is represented by 0x7ff8000000000000. On 2012/03/03 11:05:01, Yang wrote:
Loading NaN from the root list won't work if we are calling this piece
of code
as a C function. Instead we just load the bit pattern for NaN just
like we do in
the ia32 version of this.
I think the cleaner and more consistent way would be leaving the code here as it was before, and call InitializeRootRegister in the code generated in CreateTranscendentalFunction instead. http://codereview.chromium.org/9583037/ -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
