X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..refs/heads/master:/heap/WeakSet.h diff --git a/heap/WeakSet.h b/heap/WeakSet.h index 580cbe7..dbde510 100644 --- a/heap/WeakSet.h +++ b/heap/WeakSet.h @@ -31,14 +31,17 @@ namespace JSC { class Heap; +class MarkedBlock; class WeakImpl; class WeakSet { + friend class LLIntOffsetsExtractor; + public: static WeakImpl* allocate(JSValue, WeakHandleOwner* = 0, void* context = 0); static void deallocate(WeakImpl*); - WeakSet(VM*); + WeakSet(VM*, MarkedBlock&); ~WeakSet(); void lastChanceToFinalize(); @@ -63,12 +66,14 @@ private: WeakBlock* m_nextAllocator; DoublyLinkedList m_blocks; VM* m_vm; + MarkedBlock& m_markedBlock; }; -inline WeakSet::WeakSet(VM* vm) +inline WeakSet::WeakSet(VM* vm, MarkedBlock& markedBlock) : m_allocator(0) , m_nextAllocator(0) , m_vm(vm) + , m_markedBlock(markedBlock) { }