Changeset 57879 in webkit for trunk/JavaScriptCore/API/APIShims.h


Ignore:
Timestamp:
Apr 20, 2010, 1:30:12 AM (15 years ago)
Author:
[email protected]
Message:

Rubber stamped by Maciej Stachowiak (relanding r57829).
Added missing JS_EXPORTDATA

JavaScriptCore:

  • API/APIShims.h:

(JSC::APIEntryShimWithoutLock::APIEntryShimWithoutLock):
(JSC::APIEntryShimWithoutLock::~APIEntryShimWithoutLock):
(JSC::APICallbackShim::APICallbackShim):
(JSC::APICallbackShim::~APICallbackShim):

(JSC::checkSyntax):
(JSC::evaluate):

  • runtime/Identifier.cpp:

(JSC::Identifier::remove):
(JSC::Identifier::checkCurrentIdentifierTable):

  • runtime/Identifier.h:
  • runtime/InitializeThreading.cpp:

(JSC::initializeThreadingOnce):

  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::create):

  • wtf/WTFThreadData.cpp: Copied from JavaScriptCore/wtf/WTFThreadData.cpp.
  • wtf/WTFThreadData.h: Copied from JavaScriptCore/wtf/WTFThreadData.h.

JavaScriptGlue:

  • ForwardingHeaders/wtf/WTFThreadData.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/WTFThreadData.h.
  • JSUtils.cpp:

(JSGlueAPIEntry::JSGlueAPIEntry):
(JSGlueAPIEntry::~JSGlueAPIEntry):
(JSGlueAPICallback::JSGlueAPICallback):
(JSGlueAPICallback::~JSGlueAPICallback):

WebCore:

  • ForwardingHeaders/wtf/WTFThreadData.h: Copied from WebCore/ForwardingHeaders/wtf/WTFThreadData.h.
  • platform/ThreadGlobalData.cpp:

(WebCore::ThreadGlobalData::ThreadGlobalData):
(WebCore::ThreadGlobalData::~ThreadGlobalData):

  • platform/ThreadGlobalData.h:

(WebCore::ThreadGlobalData::eventNames):

  • platform/text/AtomicString.cpp:

(WebCore::AtomicStringTable::create):
(WebCore::AtomicStringTable::table):
(WebCore::AtomicStringTable::destroy):
(WebCore::stringTable):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/APIShims.h

    r57853 r57879  
    2929#include "CallFrame.h"
    3030#include "JSLock.h"
     31#include <wtf/WTFThreadData.h>
    3132
    3233namespace JSC {
     
    3637    APIEntryShimWithoutLock(JSGlobalData* globalData, bool registerThread)
    3738        : m_globalData(globalData)
    38         , m_entryIdentifierTable(setCurrentIdentifierTable(globalData->identifierTable))
     39        , m_entryIdentifierTable(wtfThreadData().setCurrentIdentifierTable(globalData->identifierTable))
    3940    {
    4041        if (registerThread)
     
    4647    {
    4748        m_globalData->timeoutChecker.stop();
    48         setCurrentIdentifierTable(m_entryIdentifierTable);
     49        wtfThreadData().setCurrentIdentifierTable(m_entryIdentifierTable);
    4950    }
    5051
     
    8081        , m_globalData(&exec->globalData())
    8182    {
    82         resetCurrentIdentifierTable();
     83        wtfThreadData().resetCurrentIdentifierTable();
    8384    }
    8485
    8586    ~APICallbackShim()
    8687    {
    87         setCurrentIdentifierTable(m_globalData->identifierTable);
     88        wtfThreadData().setCurrentIdentifierTable(m_globalData->identifierTable);
    8889    }
    8990
Note: See TracChangeset for help on using the changeset viewer.