Changeset 57829 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Apr 19, 2010, 1:05:53 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/API
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/APIShims.h
r54790 r57829 29 29 #include "CallFrame.h" 30 30 #include "JSLock.h" 31 #include <wtf/WTFThreadData.h> 31 32 32 33 namespace JSC { … … 36 37 APIEntryShimWithoutLock(JSGlobalData* globalData, bool registerThread) 37 38 : m_globalData(globalData) 38 , m_entryIdentifierTable( setCurrentIdentifierTable(globalData->identifierTable))39 , m_entryIdentifierTable(wtfThreadData().setCurrentIdentifierTable(globalData->identifierTable)) 39 40 { 40 41 if (registerThread) … … 46 47 { 47 48 m_globalData->timeoutChecker.stop(); 48 setCurrentIdentifierTable(m_entryIdentifierTable);49 wtfThreadData().setCurrentIdentifierTable(m_entryIdentifierTable); 49 50 } 50 51 … … 80 81 , m_globalData(&exec->globalData()) 81 82 { 82 resetCurrentIdentifierTable();83 wtfThreadData().resetCurrentIdentifierTable(); 83 84 } 84 85 85 86 ~APICallbackShim() 86 87 { 87 setCurrentIdentifierTable(m_globalData->identifierTable);88 wtfThreadData().setCurrentIdentifierTable(m_globalData->identifierTable); 88 89 } 89 90 -
trunk/JavaScriptCore/API/JSContextRef.cpp
r56435 r57829 124 124 JSGlobalData& globalData = exec->globalData(); 125 125 JSGlobalObject* dgo = exec->dynamicGlobalObject(); 126 IdentifierTable* savedIdentifierTable = setCurrentIdentifierTable(globalData.identifierTable);126 IdentifierTable* savedIdentifierTable = wtfThreadData().setCurrentIdentifierTable(globalData.identifierTable); 127 127 128 128 // One reference is held by JSGlobalObject, another added by JSGlobalContextRetain(). … … 148 148 globalData.deref(); 149 149 150 setCurrentIdentifierTable(savedIdentifierTable);150 wtfThreadData().setCurrentIdentifierTable(savedIdentifierTable); 151 151 } 152 152
Note:
See TracChangeset
for help on using the changeset viewer.