1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Function("\ g = (function(t,foreign){\ \"use asm\";\ var ff = foreign.ff;\ function f() {\ +ff()\ }\ return f\ })(this, {\ ff: arguments.callee\ }, new ArrayBuffer(4096))\ ")() function m(f) { for (var j = 0; j < 6000; ++j) { f(); if ((j % 1000) === 0) gc(); } } m(g);