summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1148383.js
blob: 5f51abbe1f417b2d0b8130f1e44d9c5d401163f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This testcase tests setting object metadata for objects created from JIT
// code.
if (!("getJitCompilerOptions" in this))
  quit();
opts = getJitCompilerOptions();
if (!opts['ion.enable'] || !opts['baseline.enable'])
  quit();

function TestCase() {}
function reportCompare () {
  var output = "";
  var testcase = new TestCase();
  testcase.reason = output;
}
reportCompare();
gczeal(4, 1000);
enableShellAllocationMetadataBuilder();
for (var i = 0; i < 10000; ++i)
  reportCompare();