[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / dead-speculating-argument-use.js
1 function foo(x) {
2     var tmp = x + 1;
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 10000; ++i)
8     foo(i);
9
10 var didCall = false;
11 var o = {
12     valueOf: function() { didCall = true; }
13 };
14
15 foo(o);
16 if (!didCall)
17     throw "Error: didn't call valueOf";