#ifndef DFGDesiredWeakReferences_h
#define DFGDesiredWeakReferences_h
-#include <wtf/Vector.h>
+#include <wtf/HashSet.h>
#if ENABLE(DFG_JIT)
~DesiredWeakReferences();
void addLazily(JSCell*);
+ bool contains(JSCell*);
+
void reallyAdd(VM&, CommonData*);
void visitChildren(SlotVisitor&);
private:
CodeBlock* m_codeBlock;
- Vector<JSCell*> m_references;
+ HashSet<JSCell*> m_references;
};
} } // namespace JSC::DFG