]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/dead-value-with-mov-hint-in-another-block.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-value-with-mov-hint-in-another-block.js
CommitLineData
81345200
A
1function 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}