Changeset 228533 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.h
- Timestamp:
- Feb 15, 2018, 2:34:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.h
r218794 r228533 84 84 : m_size(0) 85 85 , m_sizeAtLastPrune(0) 86 , m_timeAtLastPrune( monotonicallyIncreasingTime())86 , m_timeAtLastPrune(MonotonicTime::now()) 87 87 , m_minCapacity(0) 88 88 , m_capacity(0) … … 150 150 // This constant factor biases cache capacity toward allowing a minimum 151 151 // working set to enter the cache before it starts evicting. 152 static const doubleworkingSetTime;152 static const Seconds workingSetTime; 153 153 static const int64_t workingSetMaxBytes = 16000000; 154 154 static const size_t workingSetMaxEntries = 2000; … … 172 172 return; 173 173 174 if ( monotonicallyIncreasingTime() - m_timeAtLastPrune < workingSetTime174 if (MonotonicTime::now() - m_timeAtLastPrune < workingSetTime 175 175 && m_size - m_sizeAtLastPrune < workingSetMaxBytes 176 176 && canPruneQuickly()) … … 183 183 int64_t m_size; 184 184 int64_t m_sizeAtLastPrune; 185 double m_timeAtLastPrune;185 MonotonicTime m_timeAtLastPrune; 186 186 int64_t m_minCapacity; 187 187 int64_t m_capacity;
Note:
See TracChangeset
for help on using the changeset viewer.