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