| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 0d521093b15e696ad7210fe7bf7fc998782ec46d..dca968112491e8e631de194c19b5d02945f7c52f 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -7651,6 +7651,35 @@ class V8_EXPORT V8 {
|
| */
|
| static void ShutdownPlatform();
|
|
|
| +#if V8_OS_LINUX
|
| + /**
|
| + * Given the V8 signal handler a chance to handle a fault.
|
| + *
|
| + * This function determines whether a memory access violation can be recovered
|
| + * by V8. If so, it will return true and modify context to return to a code
|
| + * fragment that can recover from the fault. Otherwise, TryHandleFault will
|
| + * return true.
|
| + *
|
| + * The parameters to this function correspond to those passed to a Linux
|
| + * signal handler.
|
| + *
|
| + * \param signum The signal number.
|
| + *
|
| + * \param info A pointer to the siginfo_t structure provided to the signal
|
| + * handler.
|
| + *
|
| + * \param context The third argument passed to the Linux signal handler, which
|
| + * points to a ucontext_t structure.
|
| + */
|
| + static bool TryHandleSignal(int signum, void* info, void* context);
|
| +#endif // V8_OS_LINUX
|
| +
|
| + /**
|
| + * Enable the default signal handler rather than using one provided by the
|
| + * embedder.
|
| + */
|
| + static bool RegisterDefaultSignalHandler();
|
| +
|
| private:
|
| V8();
|
|
|
|
|