Closed Bug 1728973 Opened 5 years ago Closed 5 years ago

Remove Wasm support for MIPS32

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

Other
All
enhancement

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: lth, Assigned: lth)

References

Details

Attachments

(1 external file)

The MIPS32 port is dead (it hasn't compiled in a long time and last time the topic came up, the maintainer said that they are only maintaining MIPS64), so let's clean up some code.

So remove all MIPS32 ifdefs from the wasm subtree.

(Leave wasm-only masm interfaces with a mips32 case alone, we can do
these later.)

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch

(In reply to Lars T Hansen [:lth] from comment #0)

The MIPS32 port is dead (it hasn't compiled in a long time and last time the topic came up, the maintainer said that they are only maintaining MIPS64), so let's clean up some code.

I assume this fixes bug 1687417.

Is there a reason to keep the JIT too? I'm not sure what the state of bug 1165804 is, and I don't really care about big-endian mips anymore, but cf. discussion in bug 1406999 comment 16 and following, the JIT can't be enabled on the debian mipsel port. Are there supported little-endian mips ports that build with -mfp32?

Flags: needinfo?(lhansen)

(In reply to Mike Hommey [:glandium] from comment #4)

(In reply to Lars T Hansen [:lth] from comment #0)

The MIPS32 port is dead (it hasn't compiled in a long time and last time the topic came up, the maintainer said that they are only maintaining MIPS64), so let's clean up some code.

I assume this fixes bug 1687417.

It could look that way. Thanks.

Is there a reason to keep the JIT too? I'm not sure what the state of bug 1165804 is, and I don't really care about big-endian mips anymore, but cf. discussion in bug 1406999 comment 16 and following, the JIT can't be enabled on the debian mipsel port. Are there supported little-endian mips ports that build with -mfp32?

Re big-endian, the JITs are not supported on big-endian systems at all. What support code we had for big-endian was ripped out several years ago.

IMO we should be removing all MIPS32-specific code from js/, this includes anything under a MIPS32 ifdef, any masm interface flagged as mips32, and the entire js/src/jit/mips32 subdirectory. But that's a bigger job and for a project I had underway I just needed to get the MIPS32 code out of js/src/wasm/, to avoid unnecessary work.

Flags: needinfo?(lhansen)

(In reply to Lars T Hansen [:lth] from comment #5)

IMO we should be removing all MIPS32-specific code from js/, this includes anything under a MIPS32 ifdef, any masm interface flagged as mips32, and the entire js/src/jit/mips32 subdirectory. But that's a bigger job and for a project I had underway I just needed to get the MIPS32 code out of js/src/wasm/, to avoid unnecessary work.

Should we make --disable-jit the default on mips32, then?

Flags: needinfo?(lhansen)

(In reply to Mike Hommey [:glandium] from comment #6)

(In reply to Lars T Hansen [:lth] from comment #5)

IMO we should be removing all MIPS32-specific code from js/, this includes anything under a MIPS32 ifdef, any masm interface flagged as mips32, and the entire js/src/jit/mips32 subdirectory. But that's a bigger job and for a project I had underway I just needed to get the MIPS32 code out of js/src/wasm/, to avoid unnecessary work.

Should we make --disable-jit the default on mips32, then?

I think so, but let's ask Jan and Ted also.

Flags: needinfo?(tcampbell)
Flags: needinfo?(lhansen)
Flags: needinfo?(jdemooij)
Depends on: 1729860

I agree it's time to remove considering it's been broken for a long time, maintainers moving on to MIPS64, and MIPS joining RISC-V.

Filed bug 1729860.

Flags: needinfo?(jdemooij)

Moving MIPS32 to a non-jit status makes sense. I'd probably leave the minimal ifdefs in Value.h for now so that it can still be compiled as non-jit like targeting sparc.

Flags: needinfo?(tcampbell)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: