-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=119108 Reviewed by Mark Hahnenberg. Add a currentThreadIsHoldingAPILock() function to VM that checks if the current thread is the exclusive API thread. * heap/CopiedSpace.cpp: (JSC::CopiedSpace::tryAllocateSlowCase): * heap/Heap.cpp: (JSC::Heap::protect): (JSC::Heap::unprotect): (JSC::Heap::collect): * heap/MarkedAllocator.cpp: (JSC::MarkedAllocator::allocateSlowCase): * runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::init): * runtime/VM.h: (JSC::VM::currentThreadIsHoldingAPILock): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
b987aae6