js/src/tests/js1_8_1/jit/regress-471635.js

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 //-----------------------------------------------------------------------------
michael@0 7 var BUGNUMBER = 471635;
michael@0 8 var summary = 'TM: trace js shell print()';
michael@0 9 var actual = '';
michael@0 10 var expect = '';
michael@0 11
michael@0 12 //-----------------------------------------------------------------------------
michael@0 13 test();
michael@0 14 //-----------------------------------------------------------------------------
michael@0 15
michael@0 16 function test()
michael@0 17 {
michael@0 18 enterFunc ('test');
michael@0 19 printBugNumber(BUGNUMBER);
michael@0 20 printStatus (summary);
michael@0 21
michael@0 22 jit(true);
michael@0 23
michael@0 24 (function(){
michael@0 25 for (var i = 1; i < 20; ++i) {
michael@0 26 print("#");
michael@0 27 }
michael@0 28 })();
michael@0 29
michael@0 30 var recorderStarted;
michael@0 31 var recorderAborted;
michael@0 32 var traceCompleted;
michael@0 33 var skip = true;
michael@0 34
michael@0 35 if (this.tracemonkey && !this.tracemonkey.adaptive)
michael@0 36 {
michael@0 37 recorderStarted = this.tracemonkey.recorderStarted;
michael@0 38 recorderAborted = this.tracemonkey.recorderAborted;
michael@0 39 traceCompleted = this.tracemonkey.traceCompleted;
michael@0 40 skip = false;
michael@0 41 }
michael@0 42
michael@0 43 jit(false);
michael@0 44
michael@0 45 if (!skip)
michael@0 46 {
michael@0 47 expect = 'recorderStarted=1, recorderAborted=0, traceCompleted=1';
michael@0 48 actual = 'recorderStarted=' + recorderStarted + ', recorderAborted=' + recorderAborted + ', traceCompleted=' + traceCompleted;
michael@0 49 }
michael@0 50 else
michael@0 51 {
michael@0 52 expect = actual = 'Test skipped due to lack of tracemonkey jitstats object.';
michael@0 53 }
michael@0 54
michael@0 55 reportCompare(expect, actual, summary);
michael@0 56
michael@0 57 exitFunc ('test');
michael@0 58 }

mercurial