summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1148383.js
blob: 486e6e0ba5284cc4e137e5619b16960c84aa3fec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This testcase tests setting object metadata for objects created from JIT
// code.
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();