Open Bug 1638749 Opened 4 years ago Updated 3 years ago

[exploration] Don't generate stubs that won't be needed, or at least make them small

Categories

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

task

Tracking

()

People

(Reporter: lth, Unassigned)

References

(Blocks 2 open bugs)

Details

The context is the patch on bug 1637328: there must be code in the compiler for handling the case when an InterpEntry accepts or returns a v128, because we generate an InterpEntry for exported functions with that signature, yet when those entries are called we will throw before we get to the code that handles the v128 value. If it's easy to do so and does not compromise other functionality (eg debugging) it would be better to generate no entry stub, or a simple entry stub that just crashes.

We should also consider whether there are other cases like this.

This is more complicated because of the debug code in the shell, which has a backdoor for v128. So we could avoid generating stubs only in the browser, or we could make stubs for the v128 case lazy / lazier. Probably not urgent either way.

Blocks: 1744984
Summary: Don't generate stubs that won't be needed, or at least make them small → [exploration] Don't generate stubs that won't be needed, or at least make them small
You need to log in before you can comment on or make changes to this bug.