js/src/jit-test/tests/jaeger/bug587431.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 function g() {
michael@0 2 var UPPER_MASK = 2147483648
michael@0 3 var mt = new Array
michael@0 4 function f1(n1) {
michael@0 5 return n1 < 0 ? (n1 ^ UPPER_MASK) + UPPER_MASK: n1
michael@0 6 }
michael@0 7 function f2(n1, n2) {
michael@0 8 return f1(n1 + n2 & 4294967295)
michael@0 9 }
michael@0 10 function f3(n1, n2) {
michael@0 11 var sum
michael@0 12 for (var i = 0; i < 32; ++i) {
michael@0 13 sum = f2(sum, f1(n2 << i))
michael@0 14 }
michael@0 15 return sum
michael@0 16 }
michael@0 17 this.init_genrand = function(s) {
michael@0 18 mt[0] = f1(s & 96295)
michael@0 19 for (mti = 1; mti < 6; mti++) {
michael@0 20 mt[mti] = f2(f3(3, f1(mt[mti - 1] ^ mt[1] > 0)), mti)
michael@0 21 }
michael@0 22 }
michael@0 23 } (function() {
michael@0 24 var fuzzMT = new g;
michael@0 25 fuzzMT.init_genrand(54)
michael@0 26 } ())
michael@0 27
michael@0 28 /* Don't assert. */
michael@0 29

mercurial