| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 9070cfa7c971b5f023e2a390bca88d639db0b4f1..c240180e2de001a69a2e70fab68ca40d1cab36da 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -69,6 +69,7 @@
|
| #include "src/snapshot/snapshot.h"
|
| #include "src/startup-data-util.h"
|
| #include "src/tracing/trace-event.h"
|
| +#include "src/trap-handler/trap-handler.h"
|
| #include "src/unicode-inl.h"
|
| #include "src/v8.h"
|
| #include "src/v8threads.h"
|
| @@ -6152,6 +6153,16 @@ bool v8::V8::Initialize() {
|
| return true;
|
| }
|
|
|
| +#if V8_OS_LINUX && V8_TARGET_ARCH_X64
|
| +bool V8::TryHandleSignal(int signum, void* info, void* context) {
|
| + return v8::internal::trap_handler::TryHandleSignal(
|
| + signum, static_cast<siginfo_t*>(info), static_cast<ucontext_t*>(context));
|
| +}
|
| +#endif // V8_OS_LINUX
|
| +
|
| +bool V8::RegisterDefaultSignalHandler() {
|
| + return v8::internal::trap_handler::RegisterDefaultSignalHandler();
|
| +}
|
|
|
| void v8::V8::SetEntropySource(EntropySource entropy_source) {
|
| base::RandomNumberGenerator::SetEntropySource(entropy_source);
|
|
|