]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/assign-argument-in-inlined-call.js
JavaScriptCore-7600.1.4.9.tar.gz
[apple/javascriptcore.git] / tests / stress / assign-argument-in-inlined-call.js
1 function f1(a) {
2 return a[0];
3 }
4
5 function getF2Arguments() {
6 return f2.arguments;
7 }
8
9 noInline(getF2Arguments);
10
11 function f2(a) {
12 a = f1(getF2Arguments());
13 return a;
14 }
15
16 function f3(a) {
17 return f2(a);
18 }
19
20 noInline(f3);
21
22 for (var i = 0; i < 10000; ++i) {
23 var result = f3(42);
24 if (result != 42)
25 throw "Error: bad result: " + result;
26 }
27