js/src/jit-test/tests/auto-regress/bug477877.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 // Binary: cache/js-dbg-32-a419ff2cf0c5-linux
     2 // Flags: -j
     3 //
     4 var l=[
     5 -88,
     6 -37,
     7 -12,
     8 -5,
     9 9,
    10 -7,
    11 41,
    12 -9,
    13 43,
    14 -11,
    15 34,
    16 38,
    17 -22,
    18 -17,
    19 -16,
    20 -34,
    21 -33,
    22 62,
    23 63,
    24 -36,
    25 50,
    26 0,
    27 0,
    28 0,
    29 0,
    30 0,
    31 0,
    32 0,
    33 0,
    34 0,
    35 0,
    36 0,
    37 0,
    38 0,
    39 0,
    40 0,
    41 0,
    42 0,
    43 0,
    44 0,
    45 0,
    46 0,
    47 0,
    48 0,
    49 0,
    50 0,
    51 0,
    52 0,
    53 0,
    54 0,
    55 0,
    56 0,
    57 0,
    58 0,
    59 0,
    60 0,
    61 0,
    62 0,
    63 0,
    64 0,
    65 0,
    66 0,
    67 0,
    68 0,
    69 0,
    70 0,
    71 0,
    72 0,
    73 0,
    74 0,
    75 0,
    76 0,
    77 0,
    78 0,
    79 0,
    80 0,
    81 0,
    82 0,
    83 0,
    84 0,
    85 0,
    86 0,
    87 0,
    88 0,
    89 0,
    90 0,
    91 0,
    92 0,
    93 -128
    94 ];
    95 var bits = [1,
    96 1,
    97 1,
    98 1,
    99 1,
   100 1,
   101 1,
   102 1,
   103 0,
   104 0,
   105 0,
   106 0,
   107 0,
   108 0,
   109 0,
   110 0,
   111 0,
   112 0,
   113 0,
   114 0,
   115 0,
   116 0,
   117 0,
   118 0,
   119 0,
   120 0,
   121 0,
   122 0,
   123 0,
   124 0,
   125 0,
   126 0,
   127 0,
   128 0,
   129 0,
   130 0,
   131 0,
   132 0,
   133 0,
   134 0,
   135 0,
   136 0,
   137 0,
   138 0,
   139 0,
   140 0,
   141 0,
   142 0,
   143 0,
   144 0,
   145 0,
   146 0,
   147 0,
   148 0,
   149 0,
   150 0,
   151 0,
   152 0,
   153 0,
   154 0,
   155 0,
   156 0,
   157 0,
   158 0,
   159 0,
   160 0,
   161 0,
   162 0,
   163 0,
   164 ];
   165 var t = 0;
   166 var c = 3407;
   167 var i;
   169 while (c--) {
   170     i = 0;
   171     while (l[i] < 0) {
   172         if (bits[t]) {
   173             i = - l[i];
   174         } else {
   175             ++i;
   176         }
   177         ++t;
   178     }
   179 }

mercurial