]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/function-sinking-osrexit.js
2 var g = function(x
) { return x
; };
3 if (p
) { if (q
) OSRExit(); return g
; }
4 return function(x
) { return x
; };
8 for (var i
= 0; i
< 10000; ++i
) {
9 var f
= sink(true, false);
12 throw "Error: expected 42 but got " + result
;
15 // At this point, the function should be compiled down to the FTL
17 // Check that the function is properly allocated on OSR exit
18 var f
= sink(true, true);
21 throw "Error: expected 42 but got " + result
;