Closed Bug 1764367 Opened 3 years ago Closed 3 years ago

Stop using MachineState for Wasm stack maps

Categories

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

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Wasm uses MachineState to store register offsets instead of a pointer to the register contents. We can replace this with a separate RegisterOffsets class, this is simpler and faster, gets rid of some reinterpret_casts, and lets us refactor MachineState in bug 1764366.

The goal is to stop using MachineState for this, so that we can refactor MachineState
separately for the JS use cases.

This also has some other benefits: the new RegisterOffsets type is much smaller than
MachineState, because it doesn't store any information for floating-point registers
and it stores a 32-bit offset instead of a pointer. This also gets rid of some casts.

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/363d45d9ebf1 Replace use of MachineState for stack maps with a RegisterOffsets class. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: