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)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 26 Oct 2017 13:27:02 +0000 (14:27 +0100)
commitc76367f7f5d340038adb1e98c8d7683dc9fe2f72
tree061bb089a79c1ca326c88d92afae99923634ddda
parent7b11c1d82ef2eee46c69b0640f767f8e160d9447
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