/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/trap-handler/handler-inside-posix.h
32 строки
848 B
Michaël Zasso
deps: update V8 to 10.1.124.6
12 апр 2022, 23:08
Не верифицирован
12 апр 2022, 23:08
fd4f80c
Код
Авторство
О чём код?
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_TRAP_HANDLER_HANDLER_INSIDE_POSIX_H_ #define V8_TRAP_HANDLER_HANDLER_INSIDE_POSIX_H_ #include <signal.h> #include "include/v8config.h" namespace v8 { namespace internal { namespace trap_handler { #if V8_OS_LINUX || V8_OS_FREEBSD constexpr int kOobSignal = SIGSEGV; #elif V8_OS_DARWIN constexpr int kOobSignal = SIGBUS; #else #error Posix trap handlers are only supported on Linux, MacOSX and FreeBSD. #endif void HandleSignal(int signum, siginfo_t* info, void* context); bool TryHandleSignal(int signum, siginfo_t* info, void* context); } // namespace trap_handler } // namespace internal } // namespace v8 #endif // V8_TRAP_HANDLER_HANDLER_INSIDE_POSIX_H_