]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/dead-fiat-value-to-int52-then-exit-not-double.js
JavaScriptCore-7600.1.4.16.1.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-fiat-value-to-int52-then-exit-not-double.js
CommitLineData
81345200
A
1function foo() {
2 var value = bar(DFGTrue());
3 fiatInt52(value);
4 fiatInt52(value);
5}
6
7var thingy = false;
8function bar(p) {
9 if (thingy)
10 return "hello";
11 return p ? 42 : 5.5;
12}
13
14noInline(foo);
15noInline(bar);
16
17for (var i = 0; i < 1000000; ++i)
18 foo();
19
20thingy = true;
21foo();