// Attempt to test intercalls from ion to baseline and back. // // We get into this situation when the modules are compiled with different // tiering policies, or one tiers up before the other, or (for now) one opts // into gc and is baseline-compiled and the other does not and is ion-compiled. // There are lots of variables here. Generally, a small module will be // ion-compiled unless there's reason to baseline-compile it, so we're likely // actually testing something here. // // Some logging with printf confirms that refmod is baseline-compiled and // nonrefmod is ion-compiled at present, with --setpref=wasm_gc=true enabled.
var refmod = new WebAssembly.Module(wasmTextToBinary(
`(module
(import"""tbl" (table $tbl 4 funcref))
(import"""print" (func $print (param i32)))
var tbl = new WebAssembly.Table({initial:4, element:"anyfunc"}); var refins = new WebAssembly.Instance(refmod, {"":{print, tbl}}).exports; var nonrefins = new WebAssembly.Instance(nonrefmod, {"":{print, tbl}}).exports;
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.