js/src/jit-test/tests/jaeger/scriptedICs-1.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 T = 12;
     3 function arity2(q, w, r, t, y) {
     4     var Q1;
     5     var Q2;
     6     var Q3;
     7     var Q4;
     8     var Q5;
     9     var Q6;
    10     var Q7;
    11     var Q8;
    12     var Q9;
    13     T;
    14     return arguments;
    15 }
    17 function arity(q, w, r) {
    18     var Q1;
    19     var Q2;
    20     var Q3;
    21     var Q4;
    22     var Q5;
    23     var Q6;
    24     var Q7;
    25     var Q8;
    26     var Q9;
    27     T;
    28     return Q9;
    29 }
    31 for (var i = 0; i < 10; i++) {
    32     arity();
    33     if (i == 6)
    34         arity = arity2;
    35 }
    37 /* Don't assert - stubs::CompileFunction must correct |regs.sp| */

mercurial