]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/load-varargs-then-inlined-call-inlined.js
3 for (var i
= 0; i
< arguments
.length
; ++i
)
4 array
.push(arguments
[i
]);
5 return {a:a
, b:b
, c:array
};
9 return foo
.apply(this, array
);
18 function checkEqual(a
, b
) {
20 throw "Error: bad value of a: " + a
.a
+ " versus " + b
.a
;
22 throw "Error: bad value of b: " + a
.b
+ " versus " + b
.b
;
23 if (a
.c
.length
!= b
.c
.length
)
24 throw "Error: bad value of c, length mismatch: " + a
.c
+ " versus " + b
.c
;
25 for (var i
= a
.c
.length
; i
--;) {
27 throw "Error: bad value of c, mismatch at i = " + i
+ ": " + a
.c
+ " versus " + b
.c
;
31 function test(array
) {
32 var expected
= {a:array
[0], b:array
[1], c:array
};
33 var actual
= baz(array
);
34 checkEqual(actual
, expected
);
37 for (var i
= 0; i
< 10000; ++i
) {
39 for (var j
= 0; j
< i
% 6; ++j
)