Reland r216808, underlying lldb bug has been fixed.
https://bugs.webkit.org/show_bug.cgi?id=172759
Source/JavaScriptCore:
Unreviewed, relanding old patch. See: rdar://problem/31183352
- API/tests/ExecutionTimeLimitTest.cpp:
(dispatchTermitateCallback):
(testExecutionTimeLimit):
(JSC::JSLock::didAcquireLock):
(JSC::overrideDefaults):
(JSC::Options::initialize):
- runtime/Options.h:
- runtime/VMTraps.cpp:
(JSC::SignalContext::SignalContext):
(JSC::SignalContext::adjustPCToPointToTrappingInstruction):
(JSC::installSignalHandler):
(JSC::VMTraps::SignalSender::send):
- tools/SigillCrashAnalyzer.cpp:
(JSC::SignalContext::SignalContext):
(JSC::SignalContext::dump):
(JSC::installCrashHandler):
(JSC::Wasm::BBQPlan::compileFunctions):
- wasm/WasmFaultSignalHandler.cpp:
(JSC::Wasm::trapHandler):
(JSC::Wasm::enableFastMemory):
- wasm/WasmMachineThreads.cpp:
(JSC::Wasm::resetInstructionCacheOnAllThreads):
Source/WTF:
Unreviewed, relanding old patch. See: rdar://problem/31183352
- Configurations/WTF.xcconfig:
- WTF.xcodeproj/project.pbxproj:
- wtf/Platform.h:
- wtf/PlatformRegisters.h:
(WTF::registersFromUContext):
(WTF::StackBounds::StackBounds):
(WTF::ThreadHolder::~ThreadHolder):
(WTF::sendMessageUsingSignal):
(WTF::sendMessageUsingMach):
(WTF::deliverMessagesUsingMach):
(WTF::sendMessageScoped):
(WTF::sendMessage):
(WTF::Thread::machThread):
- wtf/mac/MachExceptions.defs: Copied from Source/WTF/wtf/ThreadMessage.h.
- wtf/threads/Signals.cpp:
(WTF::startMachExceptionHandlerThread):
(WTF::fromMachException):
(WTF::toMachMask):
(WTF::handleSignalsWithMach):
(WTF::setExceptionPorts):
(WTF::activeThreads):
(WTF::registerThreadForMachExceptionHandling):
(WTF::unregisterThreadForMachExceptionHandling):
(WTF::installSignalHandler):
(WTF::jscSignalHandler):
Tools:
Unreviewed, relanding old patch. See: rdar://problem/31183352
- TestWebKitAPI/Tests/WTF/ThreadMessages.cpp:
(runThreadMessageTest):
(TEST):