]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/dead-fiat-value-to-int52-double-path.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-fiat-value-to-int52-double-path.js
1 var array = new Float64Array(1);
2 array[0] = 42;
3
4 function foo() {
5 var value = bar();
6 fiatInt52(value);
7 fiatInt52(value);
8 }
9
10 function bar() {
11 return array[0];
12 }
13
14 noInline(foo);
15 noInline(bar);
16
17 for (var i = 0; i < 1000000; ++i)
18 foo();
19