Index: trunk/Source/JavaScriptCore/runtime/CodeCache.h
===================================================================
--- trunk/Source/JavaScriptCore/runtime/CodeCache.h (revision 133975)
+++ trunk/Source/JavaScriptCore/runtime/CodeCache.h (revision 134092)
@@ -53,9 +53,9 @@
class SourceProvider;
-template <typename KeyType, typename EntryType, int CacheSize> class Thingy {
+template <typename KeyType, typename EntryType, int CacheSize> class CacheMap {
typedef typename HashMap<KeyType, unsigned>::iterator iterator;
public:
- Thingy()
- : m_randomGenerator((static_cast<uint32_t>(randomNumber() * UINT32_MAX)))
+ CacheMap()
+ : m_randomGenerator((static_cast<uint32_t>(randomNumber() * UINT32_MAX)))
{
}
@@ -118,7 +118,7 @@
};
- Thingy<CodeBlockKey, Strong<UnlinkedCodeBlock>, kMaxCodeBlockEntries> m_cachedCodeBlocks;
- Thingy<GlobalFunctionKey, Strong<UnlinkedFunctionExecutable>, kMaxGlobalFunctionEntries> m_cachedGlobalFunctions;
- Thingy<UnlinkedFunctionCodeBlock*, Strong<UnlinkedFunctionCodeBlock>, kMaxFunctionCodeBlocks> m_cachedFunctionCode;
+ CacheMap<CodeBlockKey, Strong<UnlinkedCodeBlock>, kMaxCodeBlockEntries> m_cachedCodeBlocks;
+ CacheMap<GlobalFunctionKey, Strong<UnlinkedFunctionExecutable>, kMaxGlobalFunctionEntries> m_cachedGlobalFunctions;
+ CacheMap<UnlinkedFunctionCodeBlock*, Strong<UnlinkedFunctionCodeBlock>, kMaxFunctionCodeBlocks> m_cachedFunctionCode;
};