Changeset 133812 in webkit for trunk/Source/JavaScriptCore/heap/WeakBlock.h
- Timestamp:
- Nov 7, 2012, 3:34:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakBlock.h
r118616 r133812 35 35 namespace JSC { 36 36 37 class DeadBlock; 37 38 class HeapRootVisitor; 38 39 class JSValue; 39 40 class WeakHandleOwner; 40 41 41 class WeakBlock : public DoublyLinkedListNode<WeakBlock> {42 class WeakBlock : public HeapBlock<WeakBlock> { 42 43 public: 43 44 friend class WTF::DoublyLinkedListNode<WeakBlock>; 44 static const size_t blockSize = 3* KB; // 5% of MarkedBlock size45 static const size_t blockSize = 4 * KB; // 5% of MarkedBlock size 45 46 46 47 struct FreeCell { … … 56 57 }; 57 58 58 static WeakBlock* create(); 59 static void destroy(WeakBlock*); 59 static WeakBlock* create(DeadBlock*); 60 60 61 61 static WeakImpl* asWeakImpl(FreeCell*); … … 74 74 static FreeCell* asFreeCell(WeakImpl*); 75 75 76 WeakBlock( );76 WeakBlock(Region*); 77 77 WeakImpl* firstWeakImpl(); 78 78 void finalize(WeakImpl*); … … 81 81 void addToFreeList(FreeCell**, WeakImpl*); 82 82 83 WeakBlock* m_prev;84 WeakBlock* m_next;85 83 SweepResult m_sweepResult; 86 84 };
Note:
See TracChangeset
for help on using the changeset viewer.