]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/invalidation-point.js
2 possiblyDoBadThings(p
);
8 Thingy
.prototype.f = function() { return 42; }
10 function possiblyDoBadThings(p
) {
12 Thingy
.prototype.f = function() { return 24; }
14 noInline(possiblyDoBadThings
);
16 for (var i
= 0; i
< 100000; ++i
) {
17 var result
= foo(new Thingy(), false);
19 throw "Error: bad result: " + result
;
22 var result
= foo(new Thingy(), true);
24 throw "Error: bad result: " + result
;