]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - dfg/DFGDesiredWeakReferences.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / dfg / DFGDesiredWeakReferences.h
index 48ad44ca6e80191ed9819952d8ce730a8ccb30af..e312255c86cda359b7c57cbe9ec2d4ce23d58131 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef DFGDesiredWeakReferences_h
 #define DFGDesiredWeakReferences_h
 
-#include <wtf/Vector.h>
+#include <wtf/HashSet.h>
 
 #if ENABLE(DFG_JIT)
 
@@ -48,13 +48,15 @@ public:
     ~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