summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1140643.js
blob: 1b171aea298373324839b4803735e13039a48a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| allow-oom
enableSPSProfiling();
loadFile('\
for (var i = 0; i < 2; i++) {\
    obj = { m: function () {} };\
    obj.watch("m", function () { float32 = 0 + obj.foo; });\
    obj.m = 0;\
}\
');
gcparam("maxBytes", gcparam("gcBytes") + (1)*1024);
newGlobal("same-compartment");
function loadFile(lfVarx) {
  evaluate(lfVarx, { noScriptRval : true, isRunOnce : true }); 
}