Bug 1076670 part 2 - Use VS2013 Win64 sin(-0) workaround for Odin code too. r=luke

--HG--
extra : rebase_source : f02971180f0679c069ed0e4dc492ab19893302b8
This commit is contained in:
Jan de Mooij 2014-10-14 11:09:17 +02:00
parent 6f5a4b7a57
commit 902b4f4a70

View File

@ -652,7 +652,12 @@ AddressOf(AsmJSImmKind kind, ExclusiveContext *cx)
case AsmJSImm_ModD:
return RedirectCall(FuncCast(NumberMod), Args_Double_DoubleDouble);
case AsmJSImm_SinD:
#ifdef _WIN64
// Workaround a VS 2013 sin issue, see math_sin_uncached.
return RedirectCall(FuncCast<double (double)>(js::math_sin_uncached), Args_Double_Double);
#else
return RedirectCall(FuncCast<double (double)>(sin), Args_Double_Double);
#endif
case AsmJSImm_CosD:
return RedirectCall(FuncCast<double (double)>(cos), Args_Double_Double);
case AsmJSImm_TanD: