]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/new-array-dead.js
1 // Tests when we have a dead NewArray that we end up killing and there are other things in the basic block.
3 function foo(a
, b
, c
) {
10 var j
= [a
+ 1, b
+ 2, c
+ 3, d
+ 4, e
+ 5, f
+ 6, g
+ 7, h
+ 8, i
+ 9];
17 var j
= [a
+ 10, b
+ 11, c
+ 12, d
+ 13, e
+ 14, f
+ 15, g
+ 16, h
+ 17, i
+ 18];
24 var j
= [a
+ 19, b
+ 20, c
+ 21, d
+ 22, e
+ 23, f
+ 24, g
+ 25, h
+ 26, i
+ 27];
31 var j
= [a
+ 28, b
+ 29, c
+ 30, d
+ 31, e
+ 32, f
+ 33, g
+ 34, h
+ 35, i
+ 36];
37 for (var i
= 0; i
< 100000; ++i
) {
38 var result
= foo(1.5, 2.5, 3.5);
40 throw "Error: bad result: " + result
;