js/src/jit-test/tests/auto-regress/bug746376.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 // Binary: cache/js-dbg-64-67bf9a4a1f77-linux
     2 // Flags: --ion-eager
     3 //
     4 var callStack = new Array();
     5 var gTestcases = new Array();
     6 var gTc = gTestcases.length;
     7 function TestCase(n, d, e, a) {
     8   this.expect = e;
     9   this.actual = a;
    10   this.passed = getTestCaseResult(e, a);
    11   this.reason = '';
    12   this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : '';
    13   this.type = (typeof window == 'undefined' ? 'shell' : 'browser');
    14   gTestcases[gTc++] = this;
    15 }
    16 function reportCompare (expected, actual, description) {
    17   var output = "";
    18   if (typeof description == "undefined")
    19   if (expected != actual)
    20     printStatus ("Expected value '" + toPrinted(expected) +
    21                  "' matched actual value '" + toPrinted(actual) + "'");
    22   var testcase = new TestCase("unknown-test-name", description, expected, actual);
    23   testcase.reason = output;
    24     if (testcase.passed)     {    }
    25   return testcase.passed;
    26 }
    27 function enterFunc (funcName) {
    28   var lastFunc = callStack.pop();
    29       reportCompare(funcName, lastFunc, "Test driver failure wrong exit function ");
    30 }
    31 function getTestCaseResult(expected, actual)
    32 function getFailedCases() {
    33   for ( var i = 0; i < gTestcases.length; i++ ) {}
    34 };
    35 function jit(on) {}
    36 var lfcode = new Array();
    37 lfcode.push("\
    38 var summary = 'decompilation of \"let with with\" ';\
    39 var actual = '';\
    40 var expect = '';\
    41 test();\
    42 function test() {\
    43   enterFunc ('test');\
    44   gczeal(2);\
    45   for (let q = 0; q < 50; ++q) {\
    46     new Function('for (var i = 0; i < 5; ++i) { } ')();\
    47     var w = 'r'.match(/r/);\
    48     new Function('for (var j = 0; j < 1; ++j) { } ')();\
    49   }\
    50   jit(('Math.log'));\
    51   reportCompare(expect, actual, summary);\
    52 }\
    53 ");
    54 delete Debugger;
    55 while (true) {
    56 	var file = lfcode.shift(); if (file == undefined) { break; }
    57 	if (file == "evaluate") {
    58 	} else {
    59                 loadFile(file);
    60 	}
    61 }
    62 function loadFile(lfVarx) {
    63 	try {
    64 		if (lfVarx.substr(-3) == ".js") {
    65 		} else {
    66 			evaluate(lfVarx);
    67 		}
    68 	} catch (lfVare) {
    69 	}
    70 }

mercurial