Closed Bug 1656832 Opened 4 years ago Closed 4 years ago

Remove setARMHwCapFlags

Categories

(Core :: JavaScript Engine: JIT, enhancement, P1)

ARM
All
enhancement

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: lth, Assigned: lth)

References

Details

Attachments

(1 file)

We want to:

  • remove this function, because it allows "hardware" to have an unstable feature set, and that's evil
  • replace it with a shell flag that allows the flags to be set at startup
  • gate wasm compilation in HasSupport on ARMv7 explicitly
  • update the two test cases that use it with test cases that use the new flag, or kill the tests
  • optionally gate Ion on ARMv7 support, if that's not happening already
Severity: -- → N/A
Priority: -- → P1

Huh, there's already a shell flag, --arm-hwcap. It has been there at least since The Great Reformatting (Nov 2018).

It is not necessary to gate wasm on ARMv7 explicitly, we gate on various aspects of the hardware, some of which (unaligned accesses) are only supported by ARMv7.

This removes the testing function and adjusts the tests that use it.
One test is removed because wasm, and asm.js, are not available
without floating point support (guarded against in HasSupport).

The patch also documents the meaning and logic of the remaining
hardware flag management.

There is already a command line switch for setting the ARM flags (and
an environment variable) so we don't need to introduce anything to
allow flags to be set.

A final adjustment is made to HasSupport: It can call
JitSupportsAtomics() rather than test the ARM flags directly, since
the jit tests those flags on ARM.

Pushed by lhansen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ee66102bad0 Remove setARMHwCapFlags testing functions. r=bbouvier
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: