// This alternately grows and then shrinks the stack frame across tail call boundaries. // Here we go cross-module as well. There is enough ballast that the stack frame will // alternately have to grow and shrink across some of the calls. // // We generate one module+instance per function so that every call is cross-instance. // Each module has an "up" function (calling the next higher index) and a "down" function // (calling the next lower index). The last "up" function decrements the global counter // and optionally returns a result $down0 just calls $up0. // // TODO: Test that the proper instance is being restored? Or have we done that elsewhere?
function ntimes(n, v) { if (typeof v == "function") return iota(n).map(v).join(' '); return iota(n).map(_ => v).join(' ');
}
function get_local(n) { return `(local.get ${n})`
}
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.