]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/double-rep-with-non-cell.js
1 // Only bool, undefined and null
2 function addNullBoolUndefined(a
, b
) {
5 noInline(addNullBoolUndefined
);
7 for (var i
= 0; i
< 1e4
; ++i
) {
8 var value
= addNullBoolUndefined(0.5, null);
10 throw "addNullBoolUndefined(0.5, null) failed with i = " + i
+ " returned value = " + value
;
12 var value
= addNullBoolUndefined(null, undefined);
14 throw "addNullBoolUndefined(null, undefined) failed with i = " + i
+ " returned value = " + value
;
16 var value
= addNullBoolUndefined(true, null);
18 throw "addNullBoolUndefined(true, null) failed with i = " + i
+ " returned value = " + value
;
20 var value
= addNullBoolUndefined(undefined, false);
22 throw "addNullBoolUndefined(undefined, false) failed with i = " + i
+ " returned value = " + value
;
24 var value
= addNullBoolUndefined(false, true);
26 throw "addNullBoolUndefined(false, true) failed with i = " + i
+ " returned value = " + value
;
28 var value
= addNullBoolUndefined(null, 42);
30 throw "addNullBoolUndefined(null, 42) failed with i = " + i
+ " returned value = " + value
;