Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/self-test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 938 B image not shown  

Quelle  baselineCompile.js   Sprache: JAVA

 
// |jit-test| test-also=--fuzzing-safe
// Check that the help text for baselineCompile() is accurate.

if (typeof inJit == "function" && typeof baselineCompile == "function") {
    if (!inJit()) {

        var res = baselineCompile();  // compile the current script

        assertEq(inJit(), false,
                 "We have compiled this script to baseline jitcode, but shouldn't " +
                 "be running it yet, according to the help text for baselineCompile() " +
                 "in TestingFunctions.cpp. If you fail this assertion, nice work, and " +
                 "please update the help text!");

        for (var i=0; i<1; i++) {}  // exact boilerplate suggested by the help text

        assertEq(typeof res != "string" ? inJit() : truetrue,
                 "help text in TestingFunctions.cpp claims the above loop causes " +
                 "the interpreter to start running the new baseline jitcode");
    }
}

Messung V0.5
C=92 H=96 G=93

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.