Disable CPU features via prefs

NEW
Unassigned

Status

()

P5
normal
4 years ago
2 years ago

People

(Reporter: sunfish, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
For testing support for CPUs without SSE3, SSE4.1, etc., we currently have JS shell command-line options (--no-sse4, --no-sse3, etc.), but currently there is no mechanism available in the browser.

As we move forward with features like bug 1065339, bug 1096684, and bug 1061637, it will be increasingly important to test such features in the browser.
FYI, for ARM we already have something like this, where we either read from the system, or we read from an environment variable:

http://dxr.mozilla.org/mozilla-central/source/js/src/jit/arm/Architecture-arm.cpp#185-186
(Reporter)

Comment 2

4 years ago
I'm told environment variables are harder to write tests for, that we can write mochitests which set prefs, but it's harder to write tests which set environment variables. Also, I am unfond of environment variables in general, because they can cause effectively invisible differences in behavior.

Updated

2 years ago
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.