summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/InlineAddVTypeMonitor.js
blob: af5b9532cfcb52c1b8f2f5e80828c6153ac6340f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// make sure AddV instruction is monitoring the output type when 'f' is inlined
// into the loop of 'g'
var x = {};
var y = [];

function f(i) {
    return x + y;
}

function g(m) {
    var i;
    for (i = 0; i < m; i++) {
        f(i);
    }
}

g(101);