]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/object-escapes-in-loop.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / object-escapes-in-loop.js
... / ...
CommitLineData
1function foo(p) {
2 var o = {};
3 if (p) {
4 for (var i = 0; i < 100; ++i)
5 bar(o);
6 }
7 return 42;
8}
9
10function bar() {
11}
12
13noInline(foo);
14noInline(bar);
15
16for (var i = 0; i < 100000; ++i)
17 foo(true);