]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/load-varargs-then-inlined-call-and-exit.js
c378171e1d05a282e4997b34660687ac7d9900f7
3 for (var i
= 0; i
< arguments
.length
; ++i
)
4 array
.push(arguments
[i
]);
5 return {a:a
+ 1, b:b
, c:array
};
9 return foo
.apply(this, array
);
14 function checkEqual(a
, b
) {
16 throw "Error: bad value of a: " + a
.a
+ " versus " + b
.a
;
18 throw "Error: bad value of b: " + a
.b
+ " versus " + b
.b
;
19 if (a
.c
.length
!= b
.c
.length
)
20 throw "Error: bad value of c, length mismatch: " + a
.c
+ " versus " + b
.c
;
21 for (var i
= a
.c
.length
; i
--;) {
23 throw "Error: bad value of c, mismatch at i = " + i
+ ": " + a
.c
+ " versus " + b
.c
;
27 function test(array
) {
28 var expected
= {a:array
[0] + 1, b:array
[1], c:array
};
29 var actual
= bar(array
);
30 checkEqual(actual
, expected
);
33 for (var i
= 0; i
< 10000; ++i
) {
35 for (var j
= 0; j
< 1 + (i
% 5); ++j
)
40 var array
= [2147483647];