]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/float32-repeat-out-of-bounds.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / float32-repeat-out-of-bounds.js
1 //@ defaultNoEagerRun
2
3 function foo(a) {
4 a[0] = 1;
5 a[1] = 2;
6 a[2] = 3;
7 }
8
9 noInline(foo);
10
11 var array = new Float32Array(1);
12
13 for (var i = 0; i < 100000; ++i)
14 foo(array);
15
16 if (reoptimizationRetryCount(foo))
17 throw "Error: unexpected retry count: " + reoptimizationRetryCount(foo);