]>
Commit | Line | Data |
---|---|---|
40a37d08 A |
1 | // this test checks that register r9 is not a callee save on ios armv7. |
2 | function ident(a) { | |
3 | return a; | |
4 | } | |
5 | ||
6 | function foo(array,obj) { | |
7 | var a = array[0]; | |
8 | var b = array[1]; | |
9 | var c = array[2]; | |
10 | obj.a = array; | |
11 | obj.b = array; | |
12 | obj.c = array; | |
13 | obj.d = array; | |
14 | obj.e = array; | |
15 | obj.f = array; | |
16 | obj.h = array; | |
17 | return a(b(c(10))); | |
18 | } | |
19 | noInline(foo); | |
20 | ||
21 | var arr = [ident,ident,ident]; | |
22 | ||
23 | for (var i = 0; i < 100; i++) { | |
24 | var obj = {}; | |
25 | for (var j = 0; j < 200; j ++) { | |
26 | obj["j"+j] = i; | |
27 | } | |
28 | foo(arr, obj); | |
29 | } | |
30 | ||
31 | for (var i = 0; i < 100; i++) { | |
32 | var obj = {}; | |
33 | foo(arr, obj); | |
34 | } |