blob: fb205f5411b13ef7c1f114ca3391e10aca8a4c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
From: Alberto Garcia <berto@igalia.com>
Subject: Disable JIT on x86 CPUs without SSE2
Bug: https://bugs.webkit.org/show_bug.cgi?id=119190
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783293
Index: webkitgtk/Source/JavaScriptCore/runtime/VM.cpp
===================================================================
--- webkitgtk.orig/Source/JavaScriptCore/runtime/VM.cpp
+++ webkitgtk/Source/JavaScriptCore/runtime/VM.cpp
@@ -134,6 +134,11 @@ static bool enableAssembler(ExecutableAl
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.
|