blob: a56a41ad74310c968c8c1e9678afd5be3d4705cd [file] [log] [blame]
//@ defaultNoNoLLIntRun if $architecture == "arm"
let args = new Array(0x10000);
args.fill();
args = args.map((_, i) => 'a' + i).join(', ');
let gun = eval(`(function () {
class A {
}
class B extends A {
constructor(${args}) {
() => {
${args};
super();
};
class C {
constructor() {
}
trigger() {
(() => {
super.x;
})();
}
triggerWithRestParameters(...args) {
(() => {
super.x;
})();
}
}
return new C();
}
}
return new B();
})()`);
for (let i = 0; i < 0x10000; i++) {
gun.trigger();
gun.triggerWithRestParameters(1, 2, 3);
}