comparison: js/src/jit-test/tests/ion/bug898047.js
js/src/jit-test/tests/ion/bug898047.js
- branch
- TOR_BUG_3246
- changeset 7
- 129ffea94266
equal
deleted
inserted
replaced
|
1 function g(aa) { |
|
2 assertEq(aa, 123); |
|
3 } |
|
4 function f(x, yy) { |
|
5 if (yy < 0) { |
|
6 for (var j=0; j<100; j++) {} |
|
7 } |
|
8 var o = yy < 2000 ? o1 : o2; |
|
9 o.fun.apply(22, arguments); |
|
10 } |
|
11 |
|
12 function test() { |
|
13 o1 = {}; |
|
14 o1.fun = g; |
|
15 |
|
16 o2 = {}; |
|
17 o2.x = 3; |
|
18 o2.fun = g; |
|
19 |
|
20 for (var i=0; i<3000; i++) |
|
21 f(123, i); |
|
22 } |
|
23 test(); |