Changeset 58851 in webkit for trunk/JavaScriptCore/wtf/text/AtomicString.cpp
- Timestamp:
- May 5, 2010, 6:08:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/text/AtomicString.cpp
r58712 r58851 56 56 static void destroy(AtomicStringTable* table) 57 57 { 58 HashSet<StringImpl*>::iterator end = table->m_table.end(); 59 for (HashSet<StringImpl*>::iterator iter = table->m_table.begin(); iter != end; ++iter) 60 (*iter)->setIsAtomic(false); 58 61 delete table; 59 62 } … … 93 96 location = StringImpl::create(c).releaseRef(); 94 97 location->setHash(hash); 95 location->setI nTable();98 location->setIsAtomic(true); 96 99 } 97 100 }; … … 172 175 location = StringImpl::create(buf.s, buf.length).releaseRef(); 173 176 location->setHash(hash); 174 location->setI nTable();177 location->setIsAtomic(true); 175 178 } 176 179 }; … … 198 201 location = StringImpl::create(buffer.characters, buffer.length).releaseRef(); 199 202 location->setHash(hash); 200 location->setI nTable();203 location->setIsAtomic(true); 201 204 } 202 205 }; … … 255 258 PassRefPtr<StringImpl> AtomicString::add(StringImpl* r) 256 259 { 257 if (!r || r->i nTable())260 if (!r || r->isAtomic()) 258 261 return r; 259 262 … … 263 266 StringImpl* result = *stringTable().add(r).first; 264 267 if (result == r) 265 r->setI nTable();268 r->setIsAtomic(true); 266 269 return result; 267 270 }
Note:
See TracChangeset
for help on using the changeset viewer.