Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Binary: cache/js-dbg-64-6f1a38b94754-linux |
michael@0 | 2 | // Flags: -j |
michael@0 | 3 | // |
michael@0 | 4 | /* vim: set ts=8 sts=4 et sw=4 tw=99: */ |
michael@0 | 5 | |
michael@0 | 6 | var x = 0; |
michael@0 | 7 | var y = 0; |
michael@0 | 8 | |
michael@0 | 9 | function h() { |
michael@0 | 10 | if (x == 1) |
michael@0 | 11 | y++; |
michael@0 | 12 | else |
michael@0 | 13 | y--; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | function F() { |
michael@0 | 17 | var m = null; |
michael@0 | 18 | |
michael@0 | 19 | function g(i) { |
michael@0 | 20 | /* Force outgoing typemaps to have a string. */ |
michael@0 | 21 | m = "badness"; |
michael@0 | 22 | |
michael@0 | 23 | /* Loop a bit. */ |
michael@0 | 24 | for (var i = 0; i < 10; i++) { |
michael@0 | 25 | h(); |
michael@0 | 26 | } |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | /* Spin for a while so trees build. */ |
michael@0 | 30 | for (var i = 0; i < 100; i++) { |
michael@0 | 31 | /* Capture m == TT_NULL in outgoing fi for rp[0] */ |
michael@0 | 32 | g(); |
michael@0 | 33 | |
michael@0 | 34 | /* Flip the switch to bail out with deep nested frames. */ |
michael@0 | 35 | if (i > 50) |
michael@0 | 36 | x = 1; |
michael@0 | 37 | |
michael@0 | 38 | /* Set m = null on the loop tail to get better traces. */ |
michael@0 | 39 | m = null; |
michael@0 | 40 | } |
michael@0 | 41 | } |
michael@0 | 42 | |
michael@0 | 43 | F(); |
michael@0 | 44 |