Lines 1652-1657
ProcessHasSignalHandlers()
Link Here
|
1652 |
bool |
1652 |
bool |
1653 |
wasm::EnsureSignalHandlers(JSContext* cx) |
1653 |
wasm::EnsureSignalHandlers(JSContext* cx) |
1654 |
{ |
1654 |
{ |
|
|
1655 |
#ifndef JS_CODEGEN_NONE |
1656 |
|
1655 |
// Nothing to do if the platform doesn't support it. |
1657 |
// Nothing to do if the platform doesn't support it. |
1656 |
if (!ProcessHasSignalHandlers()) |
1658 |
if (!ProcessHasSignalHandlers()) |
1657 |
return true; |
1659 |
return true; |
Lines 1660-1665
wasm::EnsureSignalHandlers(JSContext* cx)
Link Here
|
1660 |
// On OSX, each JSContext which runs wasm gets its own handler thread. |
1662 |
// On OSX, each JSContext which runs wasm gets its own handler thread. |
1661 |
if (!cx->wasmMachExceptionHandler.installed() && !cx->wasmMachExceptionHandler.install(cx)) |
1663 |
if (!cx->wasmMachExceptionHandler.installed() && !cx->wasmMachExceptionHandler.install(cx)) |
1662 |
return false; |
1664 |
return false; |
|
|
1665 |
#endif |
1666 |
|
1663 |
#endif |
1667 |
#endif |
1664 |
|
1668 |
|
1665 |
return true; |
1669 |
return true; |
1666 |
- |
|
|