]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/function-sinking-no-double-allocate.js
1 function call(o
) { o
.x
= 3; }
5 var f = function () { };
7 call(f
); // Force allocation of f
17 for (var i
= 0; i
< 100000; ++i
) {
18 var o
= sink(true, false);
20 throw "Error: expected o.x to be 2 but is " + result
;
23 // At this point, the function should be compiled down to the FTL
25 // Check that the function is properly allocated on OSR exit
26 var f
= sink(true, true);
28 throw "Error: expected o.x to be 3 but is " + result
;