mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 978456 - Fix --no-fpu shell flag. r=luke
This commit is contained in:
parent
52816268c3
commit
4e2bbd48b3
@ -5775,22 +5775,6 @@ SetRuntimeOptions(JSRuntime *rt, const OptionParser &op)
|
||||
rt->setParallelIonCompilationEnabled(parallelCompilation);
|
||||
#endif
|
||||
|
||||
#if defined(JS_CODEGEN_X86) && defined(DEBUG)
|
||||
if (op.getBoolOption("no-fpu"))
|
||||
JSC::MacroAssembler::SetFloatingPointDisabled();
|
||||
#endif
|
||||
|
||||
#if (defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)) && defined(DEBUG)
|
||||
if (op.getBoolOption("no-sse3")) {
|
||||
JSC::MacroAssembler::SetSSE3Disabled();
|
||||
PropagateFlagToNestedShells("--no-sse3");
|
||||
}
|
||||
if (op.getBoolOption("no-sse4")) {
|
||||
JSC::MacroAssembler::SetSSE4Disabled();
|
||||
PropagateFlagToNestedShells("--no-sse4");
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // JS_ION
|
||||
|
||||
#ifdef JS_ARM_SIMULATOR
|
||||
@ -6048,8 +6032,25 @@ main(int argc, char **argv, char **envp)
|
||||
* allocations as possible.
|
||||
*/
|
||||
OOM_printAllocationCount = op.getBoolOption('O');
|
||||
|
||||
#if defined(JS_CODEGEN_X86) && defined(JS_ION)
|
||||
if (op.getBoolOption("no-fpu"))
|
||||
JSC::MacroAssembler::SetFloatingPointDisabled();
|
||||
#endif
|
||||
|
||||
#if (defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)) && defined(JS_ION)
|
||||
if (op.getBoolOption("no-sse3")) {
|
||||
JSC::MacroAssembler::SetSSE3Disabled();
|
||||
PropagateFlagToNestedShells("--no-sse3");
|
||||
}
|
||||
if (op.getBoolOption("no-sse4")) {
|
||||
JSC::MacroAssembler::SetSSE4Disabled();
|
||||
PropagateFlagToNestedShells("--no-sse4");
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // DEBUG
|
||||
|
||||
// Start the engine.
|
||||
if (!JS_Init())
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user