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
+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.
size_t nextCell;
PageAllocationAligned* blocks;
- void* nextNumber;
-
size_t numBlocks;
size_t usedBlocks;
public:
void destroy();
- void* allocateNumber(size_t);
void* allocate(size_t);
bool isBusy(); // true if an allocation or collection is in progress
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());