Closed Bug 1850989 Opened 1 year ago Closed 1 year ago

Cleanup Wasm (tail) calls code

Categories

(Core :: JavaScript: WebAssembly, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: yury, Assigned: yury)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(3 files)

This is catch-all bug for follow up work. Mostly to tidy up the code base.

Items discovered e.g. during bug 1846762:

  • some FunctionCompiler functions does not need isDeadCode check, e.g. at callRef
  • still have if (!action) { return false; } return true;

More discoveries:

  • Unused instrumentation: CodeOffset* fastCallOffset = &t; at e.g. wasmReturnCallIndirect
  • Move temp register (in wasmCollapseFrame operation, e.g. e.g. static constexpr Register tempForRA = ABINonArgReg2;) into Assembler-xxx.h files, and give it more descriptive name.

Maybe more

Assignee: nobody → ydelendik
Status: NEW → ASSIGNED

Address preexisting if (e) return false; return true; in wasm code.

readability-simplify-boolean-expr

Depends on D192117

Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61f7bb9a3678 Replace superfluous inDeadCode checks with assert. r=rhunt https://hg.mozilla.org/integration/autoland/rev/f06d3ef22e4c Fix readability-simplify-boolean-expr in wasm code. r=rhunt https://hg.mozilla.org/integration/autoland/rev/b837f069626d Make temp registers used in tail calls ops global. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: