js/src/jit-test/tests/asm.js/testBug952022.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 function g(f) {
michael@0 2 for (var j = 0; j < 9; ++j) {
michael@0 3 try {
michael@0 4 f()
michael@0 5 } catch (e) {}
michael@0 6 }
michael@0 7 }
michael@0 8 function h(code) {
michael@0 9 Function(code)();
michael@0 10 }
michael@0 11 g([]);
michael@0 12 g([]);
michael@0 13 g([]);
michael@0 14 g([]);
michael@0 15 g([]);
michael@0 16 g([]);
michael@0 17 g([]);
michael@0 18 g([]);
michael@0 19 g([]);
michael@0 20 g([]);
michael@0 21 g([]);
michael@0 22 g([]);
michael@0 23 g([]);
michael@0 24 g([]);
michael@0 25 g([]);
michael@0 26 g([]);
michael@0 27 g([]);
michael@0 28 g([]);
michael@0 29 g([]);
michael@0 30 g([]);
michael@0 31 g([]);
michael@0 32 g([]);
michael@0 33 g([]);
michael@0 34 g([]);
michael@0 35 g([]);
michael@0 36 g([]);
michael@0 37 g([]);
michael@0 38 g([]);
michael@0 39 g([]);
michael@0 40 g([]);
michael@0 41 h("\
michael@0 42 m = (function(stdlib, foreign) { \
michael@0 43 \"use asm\";\
michael@0 44 var ff=foreign.ff;\
michael@0 45 function f(){\
michael@0 46 ff(0);\
michael@0 47 } \
michael@0 48 return f \
michael@0 49 })(this , { \
michael@0 50 ff: arguments.callee.caller\
michael@0 51 });\
michael@0 52 g(m , []);\
michael@0 53 ");
michael@0 54 h("\
michael@0 55 m = undefined;\
michael@0 56 gc();\
michael@0 57 ")

mercurial