]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/materialize-past-put-structure.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / materialize-past-put-structure.js
1 function foo(p) {
2 var o = {f:42};
3 if (p)
4 return {f:42, g:o};
5 }
6
7 noInline(foo);
8
9 var array = new Array(1000);
10 for (var i = 0; i < 4000000; ++i) {
11 var o = foo(true);
12 array[i % array.length] = o;
13 }
14