Open Bug 1895925 Opened 8 months ago Updated 8 months ago

Do not create Wasm structures for simple params/results in PI wrappers

Categories

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

enhancement

Tracking

()

People

(Reporter: yury, Unassigned)

References

(Blocks 1 open bug)

Details

In GetSuspendingPromiseResult, SetPromisingPromiseResults and wasm wrappers, we work with GC structures. It adds some overhead.

Replace these structures with less complex types:

  • if params/results is single reference, use just this reference
  • if no params/results, use just null pointer

This will not change logic of builtin/utility functions. The logic of generated wrappers might change though. (Also, I was thinking about i32/i64 types, but this complicates things)

Severity: -- → N/A
Priority: -- → P2
Blocks: wasm-jspi
No longer blocks: wasm-jspi-proto
You need to log in before you can comment on or make changes to this bug.