summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/alloc-dense-elements.js
blob: 3013aa9ec1cb8ea5e107601a8aee3747d49bad77 (plain)
1
2
3
4
5
6
7
8
9
function f() {
    for (var i=0; i<100; i++) {
        // Int32Array to force an IC in Ion.
        var o = (i == 20) ? new Int32Array(1) : {};
        o[0] = i;
        assertEq(o[0], i);
    }
}
f();