summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/API/APIShims.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/API/APIShims.h')
-rw-r--r--JavaScriptCore/API/APIShims.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/JavaScriptCore/API/APIShims.h b/JavaScriptCore/API/APIShims.h
index 9a6cacb..3d42ca2 100644
--- a/JavaScriptCore/API/APIShims.h
+++ b/JavaScriptCore/API/APIShims.h
@@ -28,6 +28,7 @@
#include "CallFrame.h"
#include "JSLock.h"
+#include <wtf/WTFThreadData.h>
namespace JSC {
@@ -35,7 +36,7 @@ class APIEntryShimWithoutLock {
protected:
APIEntryShimWithoutLock(JSGlobalData* globalData, bool registerThread)
: m_globalData(globalData)
- , m_entryIdentifierTable(setCurrentIdentifierTable(globalData->identifierTable))
+ , m_entryIdentifierTable(wtfThreadData().setCurrentIdentifierTable(globalData->identifierTable))
{
if (registerThread)
globalData->heap.registerThread();
@@ -45,7 +46,7 @@ protected:
~APIEntryShimWithoutLock()
{
m_globalData->timeoutChecker.stop();
- setCurrentIdentifierTable(m_entryIdentifierTable);
+ wtfThreadData().setCurrentIdentifierTable(m_entryIdentifierTable);
}
private:
@@ -79,12 +80,12 @@ public:
: m_dropAllLocks(exec)
, m_globalData(&exec->globalData())
{
- resetCurrentIdentifierTable();
+ wtfThreadData().resetCurrentIdentifierTable();
}
~APICallbackShim()
{
- setCurrentIdentifierTable(m_globalData->identifierTable);
+ wtfThreadData().setCurrentIdentifierTable(m_globalData->identifierTable);
}
private: