From 42c4e2f1957b5ab72e9f5738f9f9a481af3bd93c Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Thu, 31 May 2018 18:38:40 +0100 Subject: [PATCH] Disable JIT on x86 CPUs without SSE2 =================================================================== Gbp-Pq: Name disable-jit-nonsse2.patch --- Source/JavaScriptCore/runtime/VM.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/JavaScriptCore/runtime/VM.cpp b/Source/JavaScriptCore/runtime/VM.cpp index d7e50ed..ddf02e5 100644 --- a/Source/JavaScriptCore/runtime/VM.cpp +++ b/Source/JavaScriptCore/runtime/VM.cpp @@ -134,6 +134,11 @@ static bool enableAssembler(ExecutableAllocator& executableAllocator) return false; } +#if CPU(X86) + if (!MacroAssembler::supportsFloatingPoint()) + return false; +#endif + #if USE(CF) #if COMPILER(GCC) && !COMPILER(CLANG) // FIXME: remove this once the EWS have been upgraded to LLVM. -- 2.30.2