Remove Wasm support for MIPS32
Categories
(Core :: JavaScript: WebAssembly, enhancement, P3)
Tracking
()
| 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.
| Assignee | ||
Comment 1•5 years ago
|
||
So remove all MIPS32 ifdefs from the wasm subtree.
(Leave wasm-only masm interfaces with a mips32 case alone, we can do
these later.)
Comment 3•5 years ago
|
||
| bugherder | ||
Comment 4•5 years ago
|
||
(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?
| Assignee | ||
Comment 5•5 years ago
|
||
(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.
Comment 6•5 years ago
|
||
(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?
Comment 7•5 years ago
•
|
||
(which would amount to removing "mips32" from https://searchfox.org/mozilla-central/rev/aa46c2dcccbc6fd4265edca05d3d00cccdfc97b9/js/moz.configure#140)
| Assignee | ||
Comment 8•5 years ago
|
||
(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.
Comment 9•5 years ago
|
||
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.
Comment 10•5 years ago
|
||
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.
Description
•