Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 19b8e2c701f11bf66b595306d89127a960159172..1dfcbff5b1480d97da216e9c9473509cb6790048 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -7602,6 +7602,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(); |