mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
--- ./deps/v8/src/trap-handler/trap-handler.h.orig 2024-02-18 22:32:25.709233278 +0530
|
|
+++ ./deps/v8/src/trap-handler/trap-handler.h 2024-02-18 22:51:32.229316245 +0530
|
|
@@ -17,29 +17,7 @@
|
|
namespace internal {
|
|
namespace trap_handler {
|
|
|
|
-// X64 on Linux, Windows, MacOS, FreeBSD.
|
|
-#if V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 && \
|
|
- ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_DARWIN || \
|
|
- V8_OS_FREEBSD)
|
|
-#define V8_TRAP_HANDLER_SUPPORTED true
|
|
-// Arm64 (non-simulator) on Mac.
|
|
-#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_ARM64 && V8_OS_DARWIN
|
|
-#define V8_TRAP_HANDLER_SUPPORTED true
|
|
-// Arm64 simulator on x64 on Linux, Mac, or Windows.
|
|
-//
|
|
-// The simulator case uses some inline assembly code, which cannot be
|
|
-// compiled with MSVC, so don't enable the trap handler in that case.
|
|
-// (MSVC #defines _MSC_VER, but so does Clang when targeting Windows, hence
|
|
-// the check for __clang__.)
|
|
-#elif V8_TARGET_ARCH_ARM64 && V8_HOST_ARCH_X64 && \
|
|
- (V8_OS_LINUX || V8_OS_DARWIN || V8_OS_WIN) && \
|
|
- (!defined(_MSC_VER) || defined(__clang__))
|
|
-#define V8_TRAP_HANDLER_VIA_SIMULATOR
|
|
-#define V8_TRAP_HANDLER_SUPPORTED true
|
|
-// Everything else is unsupported.
|
|
-#else
|
|
#define V8_TRAP_HANDLER_SUPPORTED false
|
|
-#endif
|
|
|
|
#if V8_OS_ANDROID && V8_TRAP_HANDLER_SUPPORTED
|
|
// It would require some careful security review before the trap handler
|