// Tail-call litmus test with multiple results // // Mutually recursive functions implement a multi-entry loop using indirect // cross-module tail calls. The functions do not have the same signatures, so // if all arguments are stack arguments then these use different amounts of // stack space. // // Cross-module mutual recursion must be set up by JS, which is a bit of hair. // But this should not destroy the ability to tail-call. // // The mutable globals accessed after the call are there to attempt to ensure // that the correct instance is restored after the chain of tail calls.
var table = new WebAssembly.Table({initial:2, maximum:2, element:"funcref"})
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.