blob: 50f7dfff21768ca66872e46003471b14340afce7 [file] [log] [blame]
//@ runDefault("--useConcurrentJIT=0", "--useConcurrentGC=0", "--thresholdForJITAfterWarmUp=10", "--thresholdForOptimizeAfterWarmUp=100", "--thresholdForOptimizeAfterLongWarmUp=100", "--thresholdForOptimizeAfterLongWarmUp=100")
var ia = new Int8Array(1024);
function foo(o) {
return o.f;
}
function bar(o) {
try {
o.f = 0x1;
Uint8Array.prototype.find.call(ia, function () {
o.f = 0x1;
});
} catch (e) {
}
foo(o);
}
var o = new Object();
o.__defineGetter__("f", function () { });
for (var i = 0; i < 1000; ++i) {
bar({});
bar(o);
}