]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/dead-int32-to-double.js
0713fd67814d1f02e6d7e233776188c94a63b3bd
[apple/javascriptcore.git] / tests / stress / dead-int32-to-double.js
1 function foo(int, o) {
2 var x = int;
3 o.f = x;
4 for (var i = 0; i < 100; ++i)
5 x += 0.5;
6 }
7
8 noInline(foo);
9
10 for (var i = 0; i < 100; ++i)
11 foo(42, {});
12
13 var o = {g: 43};
14 foo(47, o);
15 if (o.f != 47)
16 throw "Error: o.f is " + o.f;