summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/scriptedICs-1.js
blob: b0fd505c7e4689e305e6e44f5a7b5012f50ad218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
T = 12;

function arity2(q, w, r, t, y) {
    var Q1;
    var Q2;
    var Q3;
    var Q4;
    var Q5;
    var Q6;
    var Q7;
    var Q8;
    var Q9;
    T;
    return arguments;
}

function arity(q, w, r) {
    var Q1;
    var Q2;
    var Q3;
    var Q4;
    var Q5;
    var Q6;
    var Q7;
    var Q8;
    var Q9;
    T;
    return Q9;
}

for (var i = 0; i < 10; i++) {
    arity();
    if (i == 6)
        arity = arity2;
}

/* Don't assert - stubs::CompileFunction must correct |regs.sp| */