Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/ion/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 606 B image not shown  

Quelle  bug2020906.js

  Sprache: JAVA
 

function inner(a, b) {
  var ai = a | 0;
  var bi = b | 0;
  var x = ai;
  if (ai) {
    x = bi;
    // This empty switch compiles to an MTableSwitch with only a default
    // case (single successor block).
    switch(x) {}
  }
  return x;
}
// `inner` will be inlined into `outer` to get the structure expected by
// BlockIsSingleTest.
function outer(a, b) {
  if (inner(a, b)) {
    return 1;
  }
  return 2;
}
function test() {
  with ({}) {} // Don't Ion-compile.
  var res = 0;
  for (var i = 0; i < 12000; i++) {
    res += outer(12);
    res += outer(00);
  }
  assertEq(res, 36000);
}
test();

Messung V0.5 in Prozent
C=84 H=87 G=85

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© 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.