Changeset 134092 in webkit
- Timestamp:
- Nov 9, 2012 11:32:19 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
runtime/CodeCache.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r134081 r134092 1 2012-11-09 Oliver Hunt <oliver@apple.com> 2 3 So Thingy probably isn't the best name for a class, so 4 renamed to CacheMap. 5 6 RS=Geoff 7 8 * runtime/CodeCache.h: 9 (JSC::CacheMap::CacheMap): 10 1 11 2012-11-09 Filip Pizlo <fpizlo@apple.com> 2 12 -
trunk/Source/JavaScriptCore/runtime/CodeCache.h
r133975 r134092 53 53 class SourceProvider; 54 54 55 template <typename KeyType, typename EntryType, int CacheSize> class Thingy{55 template <typename KeyType, typename EntryType, int CacheSize> class CacheMap { 56 56 typedef typename HashMap<KeyType, unsigned>::iterator iterator; 57 57 public: 58 Thingy()59 : m_randomGenerator((static_cast<uint32_t>(randomNumber() * UINT32_MAX)))58 CacheMap() 59 : m_randomGenerator((static_cast<uint32_t>(randomNumber() * UINT32_MAX))) 60 60 { 61 61 } … … 118 118 }; 119 119 120 Thingy<CodeBlockKey, Strong<UnlinkedCodeBlock>, kMaxCodeBlockEntries> m_cachedCodeBlocks;121 Thingy<GlobalFunctionKey, Strong<UnlinkedFunctionExecutable>, kMaxGlobalFunctionEntries> m_cachedGlobalFunctions;122 Thingy<UnlinkedFunctionCodeBlock*, Strong<UnlinkedFunctionCodeBlock>, kMaxFunctionCodeBlocks> m_cachedFunctionCode;120 CacheMap<CodeBlockKey, Strong<UnlinkedCodeBlock>, kMaxCodeBlockEntries> m_cachedCodeBlocks; 121 CacheMap<GlobalFunctionKey, Strong<UnlinkedFunctionExecutable>, kMaxGlobalFunctionEntries> m_cachedGlobalFunctions; 122 CacheMap<UnlinkedFunctionCodeBlock*, Strong<UnlinkedFunctionCodeBlock>, kMaxFunctionCodeBlocks> m_cachedFunctionCode; 123 123 }; 124 124
Note: See TracChangeset
for help on using the changeset viewer.