js/src/jit-test/tests/ion/bug731820.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 BigInteger(a, b, c) {
michael@0 2 this.array = new Array();
michael@0 3 if (a != null) {
michael@0 4 var this_array = this.array;
michael@0 5 this.t = 0;
michael@0 6 var i = a.length;
michael@0 7 while (--i >= 0) {
michael@0 8 this_array[this.t++] = 0;
michael@0 9 }
michael@0 10 }
michael@0 11 }
michael@0 12 function bnpCopyTo(r, g) {
michael@0 13 var this_array = g.array;
michael@0 14 for (var i = g.t - 1; i >= 0; --i)
michael@0 15 r.array[i] = g.array[i];
michael@0 16 r.t = g.t;
michael@0 17 }
michael@0 18 function montConvert(x) {
michael@0 19 var r = new BigInteger(null);
michael@0 20 r.t = 56;
michael@0 21 return r;
michael@0 22 }
michael@0 23 var ba = new Array();
michael@0 24 a = new BigInteger(ba);
michael@0 25 new BigInteger("afdsafdsafdsaafdsafdsafdsafdsafdsafdsafdsafdsafdsafdsfds");
michael@0 26 g = montConvert(a);
michael@0 27 var r = new BigInteger(null);
michael@0 28 bnpCopyTo(r, g);
michael@0 29

mercurial