From 55081254cd5f65555e5ae186a86900925d5a9ff6 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Fri, 2 Sep 2016 08:18:33 +0000 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