DFG backends shouldn't emit type checks at KnownBlah edges
[WebKit-https.git] / Source / JavaScriptCore / tests / stress / path-sensitive-known-cell-crash.js
1 function bar(o) {
2     if (o.f)
3         return o.f;
4     else
5         return {e:41, f:42};
6 }
7
8 function foo(o) {
9     var c = bar(o);
10     return c.f;
11 }
12
13 noInline(foo);
14
15 // Warm up foo with some different object types.
16 for (var i = 0; i < 10000; ++i) {
17     foo({f:{k:0, f:1}});
18     foo({g:1, f:{l: -1, f:2, g:3}});
19     foo({h:2, f:null});
20 }
21