-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=118573 Patch by Yi Shen <max.hong.shen@gmail.com> on 2013-07-25 Reviewed by Geoffrey Garen. Remove the thread lock from API Shims if the VM has an exclusive thread (e.g. the VM only used by WebCore's main thread). Source/JavaScriptCore: * API/APIShims.h: (JSC::APIEntryShim::APIEntryShim): (JSC::APICallbackShim::APICallbackShim): * runtime/JSLock.cpp: (JSC::JSLockHolder::JSLockHolder): (JSC::JSLockHolder::init): (JSC::JSLockHolder::~JSLockHolder): (JSC::JSLock::DropAllLocks::DropAllLocks): (JSC::JSLock::DropAllLocks::~DropAllLocks): * runtime/VM.cpp: (JSC::VM::VM): * runtime/VM.h: Source/WebCore: No new tests required since no functionality changed. * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::commonVM): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a7bbb1bb