blob: ae745077dfc9fc81d5939d1f0cf637afd5c4c2d2 [file] [log] [blame]
fpizlo@apple.com56947aa2014-07-03 21:04:07 +00001function foo(a, b, p, o) {
2 var x = a + b;
3 if (p) {
4 var y = x;
5 var result = o.f.f;
6 var z = y + 1;
7 return result;
8 }
9}
10
11noInline(foo);
12
13for (var i = 0; i < 100000; ++i) {
14 var result = foo(1, 2, true, {f:{f:42}});
15 if (result != 42)
16 throw "Error: bad result: " + result;
17}