summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug719346.js
blob: 1fbc0a74f8b3e943902b368d2617440287da5d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Try to GC some ion code that involves an IC on x64.

var o = {
	bar: function () { return 1; }
}

function f(o) {
	for (var i = 0; i < 100; i++)
	 o.bar();
}

f(o);

// Don't segfault.
gc();