diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/Options.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/Options.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/runtime/Options.cpp b/Source/JavaScriptCore/runtime/Options.cpp index b5ce39c0d..16c0b5d43 100644 --- a/Source/JavaScriptCore/runtime/Options.cpp +++ b/Source/JavaScriptCore/runtime/Options.cpp @@ -138,6 +138,19 @@ void Options::initialize() ; // Deconfuse editors that do auto indentation #endif +#if !ENABLE(JIT) + useJIT() = false; + useDFGJIT() = false; +#endif +#if !ENABLE(YARR_JIT) + useRegExpJIT() = false; +#endif + +#if USE(CF) || OS(UNIX) + zombiesAreImmortal() = !!getenv("JSImmortalZombieEnabled"); + useZombieMode() = zombiesAreImmortal() || !!getenv("JSZombieEnabled"); +#endif + // Do range checks where needed and make corrections to the options: ASSERT(thresholdForOptimizeAfterLongWarmUp() >= thresholdForOptimizeAfterWarmUp()); ASSERT(thresholdForOptimizeAfterWarmUp() >= thresholdForOptimizeSoon()); |