Closed
Bug 1742936
Opened 1 year ago
Closed 1 year ago
Shrink table-of-funcref elements to a single word
Categories
(Core :: JavaScript: WebAssembly, enhancement, P3)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: lth, Unassigned)
References
(Blocks 1 open bug)
Details
Once bug 1639153 lands the tls pointer in the table is no longer going to be needed for calls, and so it is possible that the table representation can be shrunk to a single word. (It's possible that the tls is still needed for table.get; to be investigated.)
In addition to the space savings this may allow us to optimize the calling sequence, since LEA may be used with a scale of 8 (but not with a scale of 16) to load the destination pointer from the table. See bug 1340235 comment 15 et seq.
Also see bug 1742930 for an idea about how to accomplish the optimization without reducing the size of the table element. I don't think the present bug blocks the LEA optimization in practice.
Reporter | ||
Comment 1•1 year ago
|
||
Bug 1639153 was backed out and this is no longer active.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•