Disable JIT on x86 CPUs without SSE2
authorAlberto Garcia <berto@igalia.com>
Mon, 28 May 2018 13:17:22 +0000 (14:17 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Mon, 28 May 2018 13:17:22 +0000 (14:17 +0100)
===================================================================

Gbp-Pq: Name disable-jit-nonsse2.patch

Source/JavaScriptCore/runtime/VM.cpp

index d7e50ed614635182f90dd8d168be5d973dc57de7..ddf02e5a6f1be286998f15405294c03b38950f86 100644 (file)
@@ -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.