[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / microbenchmarks / in-by-id-match.js
1 function test(object)
2 {
3     if ("cocoa" in object)
4         return object.cocoa;
5     return 0;
6 }
7 noInline(test);
8
9 var o1 = {
10     cocoa: 42
11 };
12 var o2 = {
13     cappuccino: 41
14 };
15
16 for (var i = 0; i < 1e6; ++i) {
17     test(o1);
18     test(o2);
19 }