]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/regress-141489.js
JavaScriptCore-7600.1.4.15.12.tar.gz
[apple/javascriptcore.git] / tests / stress / regress-141489.js
CommitLineData
40a37d08
A
1// this test checks that register r9 is not a callee save on ios armv7.
2function ident(a) {
3 return a;
4}
5
6function 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}
19noInline(foo);
20
21var arr = [ident,ident,ident];
22
23for (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
31for (var i = 0; i < 100; i++) {
32 var obj = {};
33 foo(arr, obj);
34}