diff options
Diffstat (limited to 'Source/JavaScriptCore/wtf/WTFThreadData.cpp')
-rw-r--r-- | Source/JavaScriptCore/wtf/WTFThreadData.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/wtf/WTFThreadData.cpp b/Source/JavaScriptCore/wtf/WTFThreadData.cpp index 241fbe449..ec5de7220 100644 --- a/Source/JavaScriptCore/wtf/WTFThreadData.cpp +++ b/Source/JavaScriptCore/wtf/WTFThreadData.cpp @@ -51,4 +51,25 @@ WTFThreadData::~WTFThreadData() #endif } +} // namespace WTF + +#if USE(JSC) +namespace JSC { + +IdentifierTable::~IdentifierTable() +{ + HashSet<StringImpl*>::iterator end = m_table.end(); + for (HashSet<StringImpl*>::iterator iter = m_table.begin(); iter != end; ++iter) + (*iter)->setIsIdentifier(false); +} + +std::pair<HashSet<StringImpl*>::iterator, bool> IdentifierTable::add(StringImpl* value) +{ + std::pair<HashSet<StringImpl*>::iterator, bool> result = m_table.add(value); + (*result.first)->setIsIdentifier(true); + return result; } + +} // namespace JSC +#endif + |