js/src/jit-test/tests/gc/bug-950927.js

Thu, 22 Jan 2015 13:21:57 +0100

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

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 var lfcode = new Array();
     2 lfcode.push("\
     3 var optionNames = options().split(',');\
     4   for (var i = 0; i < optionNames.length; i++) {}\
     5 ");
     6 lfcode.push("gczeal(7,5);");
     7 lfcode.push("4");
     8 lfcode.push("\
     9 var S = new Array();\
    10 var x = 1;\
    11 for ( var i = 8; i >= 0; i-- ) {\
    12   S[0] += ' ';\
    13   S[0] += ',';\
    14 }\
    15 eval(S);\
    16 ");
    17 var lfRunTypeId = -1;
    18 while (true) {
    19 	var file = lfcode.shift(); if (file == undefined) { break; }
    20         loadFile(file)
    21 }
    22 function loadFile(lfVarx) {
    23         if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
    24             switch (lfRunTypeId) {
    25                 case 4: eval("(function() { " + lfVarx + " })();"); break;
    26                 default: evaluate(lfVarx, { noScriptRval : true }); break;
    27             }
    28         } else if (!isNaN(lfVarx)) {
    29             lfRunTypeId = parseInt(lfVarx);
    30     }
    31 }

mercurial