summaryrefslogtreecommitdiff
path: root/js/src/jit/JitOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/JitOptions.cpp')
-rw-r--r--js/src/jit/JitOptions.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/src/jit/JitOptions.cpp b/js/src/jit/JitOptions.cpp
index d14aac1941..daae3d53b5 100644
--- a/js/src/jit/JitOptions.cpp
+++ b/js/src/jit/JitOptions.cpp
@@ -126,8 +126,12 @@ DefaultJitOptions::DefaultJitOptions()
SET_DEFAULT(disableSharedStubs, false);
// Toggles whether sincos optimization is globally disabled.
- // See bug 984018 as to why this is disabled.
- SET_DEFAULT(disableSincos, true);
+ // See bug984018: The MacOS is the only one that has the sincos fast.
+ #if defined(XP_MACOSX)
+ SET_DEFAULT(disableSincos, false);
+ #else
+ SET_DEFAULT(disableSincos, true);
+ #endif
// Toggles whether sink code motion is globally disabled.
SET_DEFAULT(disableSink, true);