| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 4b6134d1781c4c25f8079afdbbb7939f079e5f86..85cb2b7a9bd05b1c03f0725d333f61ada352a3ca 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -7646,6 +7646,32 @@ class V8_EXPORT V8 {
|
| */
|
| static void ShutdownPlatform();
|
|
|
| + /**
|
| + * 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 set return_address to a location
|
| + * to jump to in order to recover from the fault. Otherwise, TryHandleFault
|
| + * will return true.
|
| + *
|
| + * \param source_instruction The address of the instruction that caused the
|
| + * fault.
|
| + *
|
| + * \param target_data The address that the faulting instruction was trying
|
| + * to read from or write to.
|
| + *
|
| + * \param return_address An output parameter where TryHandleFault will store
|
| + * the return address if V8 can recover from the fault.
|
| + */
|
| + static bool TryHandleFault(void* source_instruction, void* target_data,
|
| + void** return_address);
|
| +
|
| + /**
|
| + * Enable the default signal handler rather than using one provided by the
|
| + * embedder.
|
| + */
|
| + static bool RegisterDefaultSignalHandler();
|
| +
|
| private:
|
| V8();
|
|
|
|
|