js/src/jit-test/tests/jaeger/bug643653-2.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.

michael@0 1 var HEAP, IHEAP, FHEAP;
michael@0 2 var TOTAL_MEMORY = 50 * 1024 * 1024;
michael@0 3 HEAP = IHEAP = new Int32Array(TOTAL_MEMORY);
michael@0 4 STACK_ROOT = STACKTOP = undefined;
michael@0 5 var _rng;
michael@0 6 var __str2;
michael@0 7 var __str3;
michael@0 8 {
michael@0 9 var __stackBase__ = STACKTOP;
michael@0 10 var $n;
michael@0 11 var $tmp5 = __stackBase__ + 12;
michael@0 12 var $tmp6 = $n;
michael@0 13 var $mul7 = ($tmp6) * 3;
michael@0 14 $this_addr_i23 = $tmp5;
michael@0 15 $id_addr_i = __str2;
michael@0 16 $desc_addr_i = __str3;
michael@0 17 $N_addr_i = $mul7;
michael@0 18 var $this1_i24 = $this_addr_i23;
michael@0 19 var $tmp_i25 = $id_addr_i;
michael@0 20 var $tmp2_i = $desc_addr_i;
michael@0 21 var $tmp3_i = $N_addr_i;
michael@0 22 __Z9makeFastaI10RandomizedEvPKcS2_jRT_($tmp_i25, $tmp2_i, $tmp3_i, $this1_i24);
michael@0 23 }
michael@0 24 function __Z9makeFastaI10RandomizedEvPKcS2_jRT_($id, $desc, $N, $output)
michael@0 25 {
michael@0 26 $output_addr = $output;
michael@0 27 var $tmp4 = $output_addr;
michael@0 28 $this_addr_i = $tmp4;
michael@0 29 var $this1_i = $this_addr_i;
michael@0 30 var $table_i = $this1_i;
michael@0 31 var $call_i = __ZN10LineBuffer7genrandER10Cumulativej(0, $table_i, 0);
michael@0 32 }
michael@0 33 function __ZN10LineBuffer7genrandER10Cumulativej($this, $table, $N)
michael@0 34 {
michael@0 35 var $this_addr_i1;
michael@0 36 var $pct_addr_i;
michael@0 37 $table_addr = $table;
michael@0 38 var $tmp3 = $table_addr;
michael@0 39 $this_addr_i = _rng;
michael@0 40 $max_addr_i = 1;
michael@0 41 var $this1_i = $this_addr_i;
michael@0 42 var $last_i = $this1_i;
michael@0 43 var $tmp_i = IHEAP[$last_i];
michael@0 44 var $mul_i = ($tmp_i) * 3877;
michael@0 45 var $add_i = ($mul_i) + 29573;
michael@0 46 var $rem_i = ($add_i) % 139968;
michael@0 47 var $last2_i = $this1_i;
michael@0 48 IHEAP[$last2_i] = $rem_i;
michael@0 49 var $tmp3_i = $max_addr_i;
michael@0 50 var $last4_i = $this1_i;
michael@0 51 var $tmp5_i = IHEAP[$last4_i];
michael@0 52 var $conv_i = ($tmp5_i);
michael@0 53 var $mul6_i = ($tmp3_i) * ($conv_i);
michael@0 54 var $div_i = ($mul6_i) / 139968;
michael@0 55 $this_addr_i1 = $tmp3;
michael@0 56 $pct_addr_i = $div_i;
michael@0 57 assertEq($pct_addr_i, NaN);
michael@0 58 }

mercurial