Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/dom/bindings/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 878 B image not shown  

Quelle  test_throwing_method_noDCE.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/bindings/test/test_throwing_method_noDCE.html


<!DOCTYPE html>
<meta charset=utf-8>
<title>Test that we don't DCE functions that can throw
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
/* global test, assert_true */
test(function() {
  function test(root) {
    var threw = false;
    try {
        root.querySelectorAll("");
    } catch (e) { threw = true; }
    // Hot loop to make sure the JIT heuristics ion-compile this function even
    // though it's throwing exceptions (which would normally make us back off
    // of ion compilation).
    for (var i = 0; i < 1500; i++) {
      // empty
    }
    return threw;
  }

  var threw = false;
  var el = document.createElement("div");
  for (var i = 0; i < 200; i++)
      threw = test(el);
  assert_true(threw);
}, "Shouldn't optimize away throwing functions");
</script>

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

¤ Dauer der Verarbeitung: 0.20 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.