]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/get-stack-identity-due-to-sinking.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / get-stack-identity-due-to-sinking.js
... / ...
CommitLineData
1function foo(p, a) {
2 if (p) {
3 var tmp = arguments;
4 }
5 return a;
6}
7
8function bar(p, a) {
9 return foo(p, a);
10}
11
12noInline(bar);
13
14for (var i = 0; i < 10000; ++i) {
15 var result = bar(false, 42);
16 if (result != 42)
17 throw "Error: bad result: " + result;
18}