Changeset 122182 in webkit for trunk/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp
- Timestamp:
- Jul 9, 2012, 6:50:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/ExecutionCounter.cpp
r121511 r122182 145 145 } 146 146 147 threshold = clippedThreshold(codeBlock->globalObject(), threshold); 147 int32_t maxThreshold; 148 if (Options::randomizeExecutionCountsBetweenCheckpoints()) 149 maxThreshold = codeBlock->globalObject()->weakRandomInteger() % Options::maximumExecutionCountsBetweenCheckpoints(); 150 else 151 maxThreshold = Options::maximumExecutionCountsBetweenCheckpoints(); 152 if (threshold > maxThreshold) 153 threshold = maxThreshold; 148 154 149 155 m_counter = static_cast<int32_t>(-threshold);
Note:
See TracChangeset
for help on using the changeset viewer.