Closed Bug 1922657 Opened 1 year ago Closed 1 year ago

Allow all ToBigInt values in memory64 JS parameters

Categories

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

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: bvisness, Assigned: bvisness)

References

Details

Attachments

(3 files, 2 obsolete files)

A spec update was recently merged to make sure that ToBigInt was used for IndexValue params in the memory64 JS API. We need to update our implementation to reflect this.

See Also: → 1924414

This change in terminology affects all our code, but this patch does not
yet touch the "index" parameter in memory and table descriptors.

This updates memory/table descriptors and type reflection to use
"address" instead of "index".

Depends on D226505

Previously our implementation only accepted BigInt values, but the spec
now requires that ToBigInt is used and therefore that string and boolean
values may be accepted as well.

Depends on D226506

Some spec tests were added that have a new module
definition/instantiation syntax, and wast was changed to reflect this.
We handle this by not handling it, since it is irrelevant to memory64.
This will have to be addressed eventually when the rapidly-growing pile
of "wasm 3.0" spec tests are finally added to the main spec repo.

Depends on D226507

Depends on D226535

Blocks: 1926357
No longer blocks: 1926357
Depends on: 1926357
Duplicate of this bug: 1928963
Attachment #9432612 - Attachment is obsolete: true
Attachment #9432613 - Attachment is obsolete: true
Blocks: 1929590
Severity: -- → N/A
Priority: -- → P1
Pushed by bvisness@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/819e59143959 wasm: Rename "index type" to "address type" internally. r=rhunt https://hg.mozilla.org/integration/autoland/rev/f07ad9f4f3f5 wasm: Check for "address" instead of "index". r=rhunt https://hg.mozilla.org/integration/autoland/rev/b92169f4a03b wasm: Accept all ToBigInt types. r=rhunt
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: