X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/dfg/DFGDesiredWeakReferences.h diff --git a/dfg/DFGDesiredWeakReferences.h b/dfg/DFGDesiredWeakReferences.h index 48ad44c..e312255 100644 --- a/dfg/DFGDesiredWeakReferences.h +++ b/dfg/DFGDesiredWeakReferences.h @@ -26,7 +26,7 @@ #ifndef DFGDesiredWeakReferences_h #define DFGDesiredWeakReferences_h -#include +#include #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 m_references; + HashSet m_references; }; } } // namespace JSC::DFG