Closed Bug 1825104 Opened 3 years ago Closed 4 months ago

Add tests for br_on_cast, br_on_null, etc that have extra results in addition to the ref on top of stack

Categories

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

task

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: rhunt, Assigned: rhunt)

References

Details

Attachments

(1 file)

The br_on_X instructions will pop the top of the stack and branch on it depending on X. However, they can also pass additional values as extra results.

e.g.:

(block (result (ref null 0) i32 i32)
  i32.const 0
  i32.const 0
  local.get
  br_on_cast 0
  unreachable
)

We lack test coverage here and should add more.

Adding a dependency on bug 1949849 so we can combine our efforts.

Depends on: 1949849
Severity: -- → N/A
Assignee: nobody → rhunt
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
QA Whiteboard: [qa-triage-done-c149/b148]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: