Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

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</title>
<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 = 0i < 1500i++) {
      // empty
    }
    return threw;
  }

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

Messung V0.5 in Prozent
C=97 H=100 G=98

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002