// A function that can be inlined function good() {}
// A function that can't be inlined (because of the asm.js lambda) function bad() { if (!bad) { function inner() { "use asm"; function f() {} return f;
}
}
}
// Compile a version of foo that calls good without inlining it. for (var i = 0; i < 1000; i++) { try { foo(); } catch {}
}
target = good; for (var i = 0; i < 500; i++) {
foo();
}
// Bail out of the ion-compiled version of foo. // Attach an IC that calls bad.
target = bad; for (var i = 0; i < 1500; i++) {
foo();
}
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.