Closed Bug 1982241 Opened 1 year ago Closed 1 year ago

CodeGenerator: Missing symbols visit{Add, Sub, Mul, Shift}IntPtr on riscv64, mips64 and loong64

Categories

(Core :: JavaScript Engine: JIT, defect)

defect

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox141 --- unaffected
firefox142 --- unaffected
firefox143 --- fixed

People

(Reporter: csmantle, Assigned: csmantle)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 external files)

On riscv64, loong64 and mips64 (in fact, all platforms other than x86, x64, arm{64}, and wasm32), the JS engine fails to link due to the absence of several newly added methods in bug 1980578. We may need to port the implementations to those platforms.

Example log on riscv64:

 6:38.91 mold: error: undefined symbol: js::jit::CodeGenerator::visitMulIntPtr(js::jit::LMulIntPtr*)
 6:38.91 >>> referenced by Unified_cpp_js_src_jit3.cpp
 6:38.91 >>>               ../jit/Unified_cpp_js_src_jit3.o:(js::jit::CodeGenerator::generateBody())
 6:38.91 mold: error: undefined symbol: js::jit::CodeGenerator::visitShiftIntPtr(js::jit::LShiftIntPtr*)
 6:38.92 >>> referenced by Unified_cpp_js_src_jit3.cpp
 6:38.92 >>>               ../jit/Unified_cpp_js_src_jit3.o:(js::jit::CodeGenerator::generateBody())
 6:38.92 mold: error: undefined symbol: js::jit::CodeGenerator::visitSubIntPtr(js::jit::LSubIntPtr*)
 6:38.92 >>> referenced by Unified_cpp_js_src_jit3.cpp
 6:38.92 >>>               ../jit/Unified_cpp_js_src_jit3.o:(js::jit::CodeGenerator::generateBody())
 6:38.92 mold: error: undefined symbol: js::jit::CodeGenerator::visitAddIntPtr(js::jit::LAddIntPtr*)
 6:38.92 >>> referenced by Unified_cpp_js_src_jit3.cpp
 6:38.92 >>>               ../jit/Unified_cpp_js_src_jit3.o:(js::jit::CodeGenerator::generateBody())
 6:38.97 clang++-18: error: linker command failed with exit code 1 (use -v to see invocation)
 6:38.98 gmake[4]: *** [/home/mantlebao/workspace/mozilla-firefox-dev/config/rules.mk:533: ../../../dist/bin/libmozjs-143a1.so] Error 1
Keywords: regression
Regressed by: 1980578
Summary: Missing symbols CodeGenerator::visit{Add, Sub, Mul, Div, Shift}IntPtr on riscv64, mips64 and loong64 → CodeGenerator: Missing symbols visit{Add, Sub, Mul, Div, Shift}IntPtr on riscv64, mips64 and loong64
Summary: CodeGenerator: Missing symbols visit{Add, Sub, Mul, Div, Shift}IntPtr on riscv64, mips64 and loong64 → CodeGenerator: Missing symbols visit{Add, Sub, Mul, Shift}IntPtr on riscv64, mips64 and loong64
Assignee: nobody → webmaster
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9506268 - Attachment description: Bug 1982241: Part 1: Add stubs for visit{Add, Sub, Mul, Shift}IntPtr on riscv64, mips64 and loong64. r=jandem → Bug 1982241 - Part 1: Add stubs for visit{Add, Sub, Mul, Shift}IntPtr on riscv64, mips64 and loong64. r=jandem

Set release status flags based on info from the regressing bug 1980578

Pushed by jdemooij@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4f2e32f7154f https://hg.mozilla.org/integration/autoland/rev/38c2b565f43c Part 1: Add stubs for visit{Add, Sub, Mul, Shift}IntPtr on riscv64, mips64 and loong64. r=jandem https://github.com/mozilla-firefox/firefox/commit/88013feea110 https://hg.mozilla.org/integration/autoland/rev/ec4afaa89391 [riscv64] Part 2: Port visit{Add, Sub, Mul, Shift}IntPtr from Bug 1980578 (Part 2, 3) to riscv64. r=anba https://github.com/mozilla-firefox/firefox/commit/f68820bed3af https://hg.mozilla.org/integration/autoland/rev/ec6f57f35a6a [riscv64] Part 3: Remove redundant shamt mod in CodeGenerator::visitShiftI. r=anba
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: