]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/object-escapes-in-loop.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / object-escapes-in-loop.js
1 function 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
10 function bar() {
11 }
12
13 noInline(foo);
14 noInline(bar);
15
16 for (var i = 0; i < 100000; ++i)
17 foo(true);