Do not make lack of SSE2 support on x86-32 fatal
authorGuillem Jover <guillem@hadrons.org>
Sun, 11 Oct 2015 23:45:37 +0000 (01:45 +0200)
committerSimon Quigley <tsimonq2@ubuntu.com>
Mon, 9 Apr 2018 23:44:03 +0000 (00:44 +0100)
commitc985c32d6e7db24f6dc543c6af06e7df261c47a6
tree682e33865825a8713283fc7762e36bc0a94f8541
parente5c2b7a16565325f8fed613d76979be8c7475e5b
Do not make lack of SSE2 support on x86-32 fatal

When an x86-32 CPU does not have SSE2 support (which is the case for
all AMD CPUs, and older Intel CPUs), fallback to use the interpreter,
otherwise use the JIT engine.

Even then, make the lack of SSE2 support on x86-32 fatal when trying
to instantiate a JIT engine, which does require it.

Refactor the required CPU support check into a new pair of privately
exported functions to avoid duplicating the logic, and do so in
functions instead of class members to avoid changing the class
signatures.

Version: 5.7.x
Bug-Debian: https://bugs.debian.org/792594

Gbp-Pq: Name Do-not-make-lack-of-SSE2-support-on-x86-32-fatal.patch
src/qml/jit/qv4isel_masm.cpp
src/qml/jit/qv4isel_masm_p.h
src/qml/jsruntime/qv4engine.cpp
src/qml/qml/v8/qv8engine.cpp
tools/qmljs/qmljs.cpp