Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/asm.js/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  testBug1147144-2.js

  Sprache: JAVA
 

// |jit-test| skip-if: !isAsmJSCompilationAvailable()||!Function.prototype.toSource

function test() {
load(libdir + 'asm.js');
load(libdir + 'asserts.js');

assertEq(eval(`(function asmModule() { "use asm"function asmFun() {} return asmFun })`).toSource(), "(function asmModule() {\n    [native code]\n})");
assertEq(eval(`(function asmModule() { "use asm"function asmFun() {} return asmFun })`)().toSource(), "function asmFun() {\n    [native code]\n}");
assertEq((evaluate(`function asmModule2() { "use asm"function asmFun() {} return asmFun }`), asmModule2).toSource(), "function asmModule2() {\n    [native code]\n}");
assertEq((evaluate(`function asmModule4() { "use asm"function asmFun() {} return asmFun }`), asmModule4)().toSource(), "function asmFun() {\n    [native code]\n}");
assertEq(asmCompile(USE_ASM + `function asmFun() {} return asmFun`).toSource(), "(function anonymous() {\n    [native code]\n})");
assertEq(asmCompile(USE_ASM + `function asmFun() {} return asmFun`)().toSource(), "function asmFun() {\n    [native code]\n}");
}

var g = newGlobal({ discardSource: true });
g.libdir = libdir;
g.evaluate(test.toString() + "test()");

Messung V0.5 in Prozent
C=93 H=83 G=87

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.