Changeset 34659 in webkit for trunk/JavaScriptCore/kjs/JSGlobalData.cpp
- Timestamp:
- Jun 19, 2008, 10:29:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalData.cpp
r34607 r34659 39 39 40 40 #if USE(MULTIPLE_THREADS) 41 #include <wtf/Threading.h> 41 42 #include <wtf/ThreadSpecific.h> 42 43 #endif … … 56 57 57 58 JSGlobalData::JSGlobalData() 58 //: heap(new Heap)59 : heap(new Heap) 59 60 #if USE(MULTIPLE_THREADS) 60 :arrayTable(new HashTable(KJS::arrayTable))61 , arrayTable(new HashTable(KJS::arrayTable)) 61 62 , dateTable(new HashTable(KJS::dateTable)) 62 63 , mathTable(new HashTable(KJS::mathTable)) … … 66 67 , stringTable(new HashTable(KJS::stringTable)) 67 68 #else 68 :arrayTable(&KJS::arrayTable)69 , arrayTable(&KJS::arrayTable) 69 70 , dateTable(&KJS::dateTable) 70 71 , mathTable(&KJS::mathTable) … … 119 120 } 120 121 122 JSGlobalData& JSGlobalData::sharedInstance() 123 { 124 return threadInstance(); 125 /* 126 #if USE(MULTIPLE_THREADS) 127 AtomicallyInitializedStatic(JSGlobalData, sharedInstance); 128 #else 129 static JSGlobalData sharedInstance; 130 #endif 131 return sharedInstance; 132 */ 121 133 } 134 135 }
Note:
See TracChangeset
for help on using the changeset viewer.