Closed Bug 1784268 Opened 3 years ago Closed 2 years ago

Import the GC spec tests

Categories

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

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: rhunt, Assigned: bvisness)

References

Details

Attachments

(2 files, 1 obsolete file)

The GC proposal has spec-tests for its instructions [1]. At some point we should import them using our tool [2].

[1] https://github.com/WebAssembly/gc/tree/main/test/core/gc
[2] https://searchfox.org/mozilla-central/source/js/src/jit-test/etc/wasm/generate-spectests

Assignee: nobody → bvisness
Status: NEW → ASSIGNED
Depends on: 1848006

The attached patch is not final but can be used to run spec tests. They don't all pass yet, but we can create new bugs for issues that come up and make them block this bug until they're all resolved.

Depends on: 1850028
Depends on: 1853205
Depends on: 1853189
Depends on: 1851864
Depends on: 1854007
Depends on: 1854011
Attachment #9346062 - Attachment is obsolete: true
  • Fix wasm module serialization order. Element segments sometimes need to refer to types during deserialization, but element segments were being deserialized before code objects (which contain types).
  • Do function subtype checks on import, rather than requiring strict equality.
  • Allow explicit null function references in table initializers.
  • Initialize type defs before tables when instantiating modules.

This required significantly reworking how the harness handles ref.extern. We no
longer "canonicalize" externrefs created by the harness, since when checking for
an externref result we now extract the numeric value contained within.

Depends on D188737

Pushed by bvisness@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7bd8ba854c67 Fix small issues blocking GC spec tests. r=rhunt https://hg.mozilla.org/integration/autoland/rev/49e126195a99 Import wasm gc spec tests. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Regressions: 1855709
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: