Changeset 57879 in webkit for trunk/JavaScriptCore/runtime/Identifier.cpp
- Timestamp:
- Apr 20, 2010, 1:30:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Identifier.cpp
r57853 r57879 29 29 #include <wtf/FastMalloc.h> 30 30 #include <wtf/HashSet.h> 31 #include <wtf/WTFThreadData.h> 31 32 32 33 using WTF::ThreadSpecific; … … 229 230 void Identifier::remove(UString::Rep* r) 230 231 { 231 currentIdentifierTable()->remove(r);232 wtfThreadData().currentIdentifierTable()->remove(r); 232 233 } 233 234 … … 253 254 // Check the identifier table accessible through the threadspecific matches the 254 255 // globalData's identifier table. 255 ASSERT_UNUSED(globalData, globalData->identifierTable == currentIdentifierTable());256 ASSERT_UNUSED(globalData, globalData->identifierTable == wtfThreadData().currentIdentifierTable()); 256 257 } 257 258 … … 270 271 #endif 271 272 272 ThreadSpecific<ThreadIdentifierTableData>* g_identifierTableSpecific = 0;273 274 #if ENABLE(JSC_MULTIPLE_THREADS)275 276 pthread_once_t createIdentifierTableSpecificOnce = PTHREAD_ONCE_INIT;277 static void createIdentifierTableSpecificCallback()278 {279 ASSERT(!g_identifierTableSpecific);280 g_identifierTableSpecific = new ThreadSpecific<ThreadIdentifierTableData>();281 }282 void createIdentifierTableSpecific()283 {284 pthread_once(&createIdentifierTableSpecificOnce, createIdentifierTableSpecificCallback);285 ASSERT(g_identifierTableSpecific);286 }287 288 #else289 290 void createIdentifierTableSpecific()291 {292 ASSERT(!g_identifierTableSpecific);293 g_identifierTableSpecific = new ThreadSpecific<ThreadIdentifierTableData>();294 }295 296 #endif297 298 273 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.