summaryrefslogtreecommitdiff
path: root/deps/v8/src/trap-handler/trap-handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/trap-handler/trap-handler.h')
-rw-r--r--deps/v8/src/trap-handler/trap-handler.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/v8/src/trap-handler/trap-handler.h b/deps/v8/src/trap-handler/trap-handler.h
index 7189c27e29..612cf51b45 100644
--- a/deps/v8/src/trap-handler/trap-handler.h
+++ b/deps/v8/src/trap-handler/trap-handler.h
@@ -50,9 +50,11 @@ void UpdateHandlerDataCodePointer(int index, void* base);
/// UpdateHandlerDataCodePointer and ReleaseHandlerData, or -1 on failure.
int RegisterHandlerData(void* base, size_t size,
size_t num_protected_instructions,
- ProtectedInstructionData* protected_instructions);
+ const ProtectedInstructionData* protected_instructions);
/// Removes the data from the master list and frees any memory, if necessary.
+/// TODO(mtrofin): once FLAG_wasm_jit_to_native is not needed, we can switch
+/// to using size_t for index and not need kInvalidIndex.
void ReleaseHandlerData(int index);
#if V8_OS_WIN
@@ -87,6 +89,7 @@ inline void ClearThreadInWasm() {
}
bool RegisterDefaultSignalHandler();
+V8_EXPORT_PRIVATE void RestoreOriginalSignalHandler();
#if V8_OS_LINUX
bool TryHandleSignal(int signum, siginfo_t* info, ucontext_t* context);