Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-501124.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 var gTestfile = 'regress-501124.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 501124;
9 var summary = 'Crypotographic login routines';
10 var actual = '';
11 var expect = '';
12
13
14 //-----------------------------------------------------------------------------
15 test();
16 //-----------------------------------------------------------------------------
17
18 function test()
19 {
20 enterFunc ('test');
21 printBugNumber(BUGNUMBER);
22 printStatus (summary);
23
24 jit(true);
25
26 var hexVal = "00000000000000000000000000000000DEADBABE";
27 var nblk = (((hexVal.length/2) + 8) >> 6) + 1;
28
29 var blks = new Array(nblk * 16);
30
31 for(var i = 0; i < nblk * 16; i++)
32 blks[i] = 0;
33
34 for(i = 0; i < hexVal.length; i++) {
35 blks[i >> 3] |= ("0x"+hexVal.charAt(i)) << (28 - (i % 8) * 4);
36 }
37
38 expect = '0,0,0,0,-559039810,0,0,0,0,0,0,0,0,0,0,0';
39 actual = blks + '';
40
41 jit(false);
42
43 reportCompare(expect, actual, summary);
44
45 exitFunc ('test');
46 }