]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/dead-speculating-argument-use.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / dead-speculating-argument-use.js
1 function foo(x) {
2 var tmp = x + 1;
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 10000; ++i)
8 foo(i);
9
10 var didCall = false;
11 var o = {
12 valueOf: function() { didCall = true; }
13 };
14
15 foo(o);
16 if (!didCall)
17 throw "Error: didn't call valueOf";