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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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