summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1006899.js
blob: 149d30f280f33a7089d02003952ce9700f086913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if (!this.hasOwnProperty("TypedObject"))
  quit();

this.__defineGetter__("x",
  function() {
    return this;
  }
);
function callback(obj) {}
enableShellAllocationMetadataBuilder();
evaluate("\
var { ArrayType, StructType, uint32 } = TypedObject;\
  var L = 1024;\
  var Matrix = uint32.array(L, 2);\
  var matrix = new Matrix();\
  for (var i = 0; i < L; i++)\
    matrix[i][0] = x;\
", { isRunOnce : true });