Title: [134092] trunk/Source/_javascript_Core
Revision
134092
Author
[email protected]
Date
2012-11-09 11:32:19 -0800 (Fri, 09 Nov 2012)

Log Message

2012-11-09  Oliver Hunt  <[email protected]>

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

        RS=Geoff

        * runtime/CodeCache.h:
        (JSC::CacheMap::CacheMap):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (134091 => 134092)


--- trunk/Source/_javascript_Core/ChangeLog	2012-11-09 19:27:35 UTC (rev 134091)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-11-09 19:32:19 UTC (rev 134092)
@@ -1,3 +1,13 @@
+2012-11-09  Oliver Hunt  <[email protected]>
+
+        So Thingy probably isn't the best name for a class, so
+        renamed to CacheMap.
+
+        RS=Geoff
+
+        * runtime/CodeCache.h:
+        (JSC::CacheMap::CacheMap):
+
 2012-11-09  Filip Pizlo  <[email protected]>
 
         ArrayPrototype should start out with a blank indexing type

Modified: trunk/Source/_javascript_Core/runtime/CodeCache.h (134091 => 134092)


--- trunk/Source/_javascript_Core/runtime/CodeCache.h	2012-11-09 19:27:35 UTC (rev 134091)
+++ trunk/Source/_javascript_Core/runtime/CodeCache.h	2012-11-09 19:32:19 UTC (rev 134092)
@@ -52,11 +52,11 @@
 class SourceCode;
 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)))
     {
     }
     const EntryType* find(const KeyType& key)
@@ -117,9 +117,9 @@
         kMaxFunctionCodeBlocks = 1024
     };
 
-    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;
 };
 
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to