michael@0: // Binary: cache/js-dbg-64-67bf9a4a1f77-linux michael@0: // Flags: --ion-eager michael@0: // michael@0: var callStack = new Array(); michael@0: var gTestcases = new Array(); michael@0: var gTc = gTestcases.length; michael@0: function TestCase(n, d, e, a) { michael@0: this.expect = e; michael@0: this.actual = a; michael@0: this.passed = getTestCaseResult(e, a); michael@0: this.reason = ''; michael@0: this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : ''; michael@0: this.type = (typeof window == 'undefined' ? 'shell' : 'browser'); michael@0: gTestcases[gTc++] = this; michael@0: } michael@0: function reportCompare (expected, actual, description) { michael@0: var output = ""; michael@0: if (typeof description == "undefined") michael@0: if (expected != actual) michael@0: printStatus ("Expected value '" + toPrinted(expected) + michael@0: "' matched actual value '" + toPrinted(actual) + "'"); michael@0: var testcase = new TestCase("unknown-test-name", description, expected, actual); michael@0: testcase.reason = output; michael@0: if (testcase.passed) { } michael@0: return testcase.passed; michael@0: } michael@0: function enterFunc (funcName) { michael@0: var lastFunc = callStack.pop(); michael@0: reportCompare(funcName, lastFunc, "Test driver failure wrong exit function "); michael@0: } michael@0: function getTestCaseResult(expected, actual) michael@0: function getFailedCases() { michael@0: for ( var i = 0; i < gTestcases.length; i++ ) {} michael@0: }; michael@0: function jit(on) {} michael@0: var lfcode = new Array(); michael@0: lfcode.push("\ michael@0: var summary = 'decompilation of \"let with with\" ';\ michael@0: var actual = '';\ michael@0: var expect = '';\ michael@0: test();\ michael@0: function test() {\ michael@0: enterFunc ('test');\ michael@0: gczeal(2);\ michael@0: for (let q = 0; q < 50; ++q) {\ michael@0: new Function('for (var i = 0; i < 5; ++i) { } ')();\ michael@0: var w = 'r'.match(/r/);\ michael@0: new Function('for (var j = 0; j < 1; ++j) { } ')();\ michael@0: }\ michael@0: jit(('Math.log'));\ michael@0: reportCompare(expect, actual, summary);\ michael@0: }\ michael@0: "); michael@0: delete Debugger; michael@0: while (true) { michael@0: var file = lfcode.shift(); if (file == undefined) { break; } michael@0: if (file == "evaluate") { michael@0: } else { michael@0: loadFile(file); michael@0: } michael@0: } michael@0: function loadFile(lfVarx) { michael@0: try { michael@0: if (lfVarx.substr(-3) == ".js") { michael@0: } else { michael@0: evaluate(lfVarx); michael@0: } michael@0: } catch (lfVare) { michael@0: } michael@0: }