]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/dead-osr-entry-value.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-osr-entry-value.js
1 function foo() {
2 var o = {f:42};
3 var result = 0;
4 OSRExit();
5 for (var i = 0; i < 10000; ++i) {
6 if (!DFGTrue())
7 result += o.f;
8 }
9 return result;
10 }
11
12 for (var i = 0; i < 1000; ++i) {
13 foo();
14 fullGC();
15 }
16