Open Bug 1849759 Opened 10 months ago Updated 3 months ago

Use hint for direct wasm calls whether callee can perform a tail calls

Categories

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

enhancement

Tracking

()

People

(Reporter: yury, Unassigned)

References

Details

Investigate if the regressions of bug 1571998 can be mitigated by guessing information about a callee. The Ion compiled code adds extra lea sp, fp[xx] operation even if it is not needed or will not be used to for return calls.

The metadata does not have the information if the callee function maybe perform the tail calls, however it can be inferred from the module validation or baseline compilation. The idea is to collect this information, and feed during Ion compilation at CodeGenerator::visitWasmCall.

The analysis will only answer the question if the wasm function has tail call instruction, and will be useful for call $func operation.

See Also: → 1846911
Severity: -- → N/A
Priority: -- → P2
See Also: → 1885368
You need to log in before you can comment on or make changes to this bug.