Changeset 134092 in webkit


Ignore:
Timestamp:
Nov 9, 2012 11:32:19 AM (5 years ago)
Author:
oliver@apple.com
Message:

2012-11-09 Oliver Hunt <oliver@apple.com>

So Thingy probably isn't the best name for a class, so
renamed to CacheMap.

RS=Geoff

  • runtime/CodeCache.h: (JSC::CacheMap::CacheMap):
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r134081 r134092  
     12012-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
    1112012-11-09  Filip Pizlo  <fpizlo@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/CodeCache.h

    r133975 r134092  
    5353class SourceProvider;
    5454
    55 template <typename KeyType, typename EntryType, int CacheSize> class Thingy {
     55template <typename KeyType, typename EntryType, int CacheSize> class CacheMap {
    5656    typedef typename HashMap<KeyType, unsigned>::iterator iterator;
    5757public:
    58     Thingy()
    59     : m_randomGenerator((static_cast<uint32_t>(randomNumber() * UINT32_MAX)))
     58    CacheMap()
     59        : m_randomGenerator((static_cast<uint32_t>(randomNumber() * UINT32_MAX)))
    6060    {
    6161    }
     
    118118    };
    119119
    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;
    123123};
    124124
Note: See TracChangeset for help on using the changeset viewer.