diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/Options.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/Options.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/runtime/Options.cpp b/Source/JavaScriptCore/runtime/Options.cpp index 7b6da6536..894ca8cc0 100644 --- a/Source/JavaScriptCore/runtime/Options.cpp +++ b/Source/JavaScriptCore/runtime/Options.cpp @@ -67,6 +67,9 @@ int32_t thresholdForOptimizeSoon; int32_t executionCounterIncrementForLoop; int32_t executionCounterIncrementForReturn; +bool randomizeExecutionCountsBetweenCheckpoints; +int32_t maximumExecutionCountsBetweenCheckpoints; + unsigned desiredSpeculativeSuccessFailRatio; double likelyToTakeSlowCaseThreshold; @@ -95,6 +98,9 @@ unsigned gcMarkStackSegmentSize; unsigned numberOfGCMarkers; unsigned opaqueRootMergeThreshold; +bool forceWeakRandomSeed; +unsigned forcedWeakRandomSeed; + #if ENABLE(RUN_TIME_HEURISTICS) static bool parse(const char* string, bool& value) { @@ -184,6 +190,9 @@ void initializeOptions() SET(executionCounterIncrementForLoop, 1); SET(executionCounterIncrementForReturn, 15); + + SET(randomizeExecutionCountsBetweenCheckpoints, false); + SET(maximumExecutionCountsBetweenCheckpoints, 1000); SET(desiredSpeculativeSuccessFailRatio, 6); @@ -227,6 +236,9 @@ void initializeOptions() ASSERT((static_cast<int64_t>(thresholdForOptimizeAfterLongWarmUp) << reoptimizationRetryCounterMax) > 0); ASSERT((static_cast<int64_t>(thresholdForOptimizeAfterLongWarmUp) << reoptimizationRetryCounterMax) <= static_cast<int64_t>(std::numeric_limits<int32_t>::max())); + + SET(forceWeakRandomSeed, false); + SET(forcedWeakRandomSeed, 0); } } } // namespace JSC::Options |