]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/dead-uint32-to-number.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-uint32-to-number.js
1 function foo(a, o) {
2 var x = a >>> 0;
3 o.f = x | 0;
4 for (var i = 0; i < 100; ++i)
5 x++;
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;