]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/ftl-arithsqrt.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / ftl-arithsqrt.js
... / ...
CommitLineData
1function foo(x) {
2 return Math.sqrt(x);
3}
4
5noInline(foo);
6
7var j = 0;
8for (var i = 0; i < 100000; ++i)
9 j = foo(i);
10
11if ( 316.226184874055 != j){
12 throw "Error"
13}