Closed Bug 1720381 Opened 4 years ago Closed 4 years ago

Handle alignment better for Wasm exception payload fields

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: asumu, Assigned: asumu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It was suggested in review comments on https://phabricator.services.mozilla.com/D110851 that Wasm exception handling code should deal with alignment better. In particular, a Wasm tag could use a mechanism similar to GC proposal structs with StructType and StructLayout in order to ensure alignment is taken into account for the buffer size and reading/writing values from an exception.

Assignee: nobody → asumu
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P3

This patch properly aligns exception payload buffers, and
simplified the handling of buffer offsets in the Baseline
compiler.

I've added a WIP patch to address this alignment issue. The patch should work and pass tests, but there's some refactoring needed that could use some feedback (more detail in phabricator comments) hence the WIP flag.

Attachment #9237134 - Attachment description: WIP: Bug 1720381 - Handle alignment for Wasm exception payloads → Bug 1720381 - Handle alignment for Wasm exception payloads
Pushed by rhunt@eqrion.net: https://hg.mozilla.org/integration/autoland/rev/7c19fa0eb0e0 Handle alignment for Wasm exception payloads r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: