[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / dead-fiat-value-to-int52-then-exit-not-int52.js
1 function foo() {
2     var value = bar($vm.dfgTrue());
3     fiatInt52(value);
4     fiatInt52(value);
5 }
6
7 var thingy = false;
8 function bar(p) {
9     if (thingy)
10         return 5.5;
11     return p ? 42 : 5.5;
12 }
13
14 noInline(foo);
15 noInline(bar);
16
17 for (var i = 0; i < 1000000; ++i)
18     foo();
19
20 thingy = true;
21 foo();