2011-01-10 Geoffrey Garen <ggaren@apple.com>
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jan 2011 00:41:02 +0000 (00:41 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jan 2011 00:41:02 +0000 (00:41 +0000)
        Reviewed by Oliver Hunt.

        Removed dead number allocation code.
        https://bugs.webkit.org/show_bug.cgi?id=52177

        * runtime/Heap.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75451 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/Heap.h

index cf543c79540c5187d8a5f1297aa36a396d40c877..cccf57d374574fcf14914416536f0fc271d20ddb 100644 (file)
@@ -1,3 +1,12 @@
+2011-01-10  Geoffrey Garen  <ggaren@apple.com>
+
+        Reviewed by Oliver Hunt.
+
+        Removed dead number allocation code.
+        https://bugs.webkit.org/show_bug.cgi?id=52177
+
+        * runtime/Heap.h:
+
 2011-01-10  Daniel Bates  <dbates@rim.com>
 
         Reviewed by Darin Adler.
index c7c040ebdaf48cade45acc4cb31c100e5663d754..75f50dd8245804f642b33b2001ffbe411fb3cf6e 100644 (file)
@@ -65,8 +65,6 @@ namespace JSC {
         size_t nextCell;
         PageAllocationAligned* blocks;
         
-        void* nextNumber;
-
         size_t numBlocks;
         size_t usedBlocks;
 
@@ -85,7 +83,6 @@ namespace JSC {
     public:
         void destroy();
 
-        void* allocateNumber(size_t);
         void* allocate(size_t);
 
         bool isBusy(); // true if an allocation or collection is in progress
@@ -295,19 +292,6 @@ namespace JSC {
             recordExtraCost(cost);
     }
     
-    inline void* Heap::allocateNumber(size_t s)
-    {
-        if (void* result = m_heap.nextNumber) {
-            m_heap.nextNumber = 0;
-            return result;
-        }
-
-        void* result = allocate(s);
-        m_heap.nextNumber = static_cast<char*>(result) + (CELL_SIZE / 2);
-        return result;
-    }
-
-
     inline WeakGCHandlePool* Heap::weakGCHandlePool(size_t index)
     {
         return static_cast<WeakGCHandlePool*>(m_weakGCHandlePools[index].base());