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