]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/dead-int32-to-double.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-int32-to-double.js
CommitLineData
81345200
A
1function 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
8noInline(foo);
9
10for (var i = 0; i < 100; ++i)
11 foo(42, {});
12
13var o = {g: 43};
14foo(47, o);
15if (o.f != 47)
16 throw "Error: o.f is " + o.f;