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 | function _tt_face_get_name() { |
michael@0 | 2 | var __label__ = -1; |
michael@0 | 3 | var $rec; |
michael@0 | 4 | var $n; |
michael@0 | 5 | while(true) { |
michael@0 | 6 | switch(__label__) { |
michael@0 | 7 | case -1: |
michael@0 | 8 | $rec=0; |
michael@0 | 9 | $n=0; |
michael@0 | 10 | case 0: |
michael@0 | 11 | if ($rec == 20) { |
michael@0 | 12 | __label__ = 2; |
michael@0 | 13 | break; |
michael@0 | 14 | } |
michael@0 | 15 | var $63 = $n; |
michael@0 | 16 | var $64 = $63 + 1; |
michael@0 | 17 | $n = $64; |
michael@0 | 18 | var $65 = $rec; |
michael@0 | 19 | $rec = $rec + 1; |
michael@0 | 20 | assertEq($64 < 30, true); |
michael@0 | 21 | __label__ = 0; |
michael@0 | 22 | break; |
michael@0 | 23 | case 1: |
michael@0 | 24 | $rec = 0; |
michael@0 | 25 | case 2: |
michael@0 | 26 | return; |
michael@0 | 27 | } |
michael@0 | 28 | } |
michael@0 | 29 | } |
michael@0 | 30 | _tt_face_get_name(); |
michael@0 | 31 | |
michael@0 | 32 | /* Test tracking of lifetimes around backedges in nested loops. */ |
michael@0 | 33 | function nested() { |
michael@0 | 34 | var x = 100; |
michael@0 | 35 | var i = 0; |
michael@0 | 36 | while (i < 10) { |
michael@0 | 37 | while (i < 10) { |
michael@0 | 38 | i++; |
michael@0 | 39 | if (x < 20) |
michael@0 | 40 | break; |
michael@0 | 41 | if (i > 10) { |
michael@0 | 42 | x = 200; |
michael@0 | 43 | i++; |
michael@0 | 44 | } |
michael@0 | 45 | } |
michael@0 | 46 | if (i > 10) |
michael@0 | 47 | x = 100; |
michael@0 | 48 | } |
michael@0 | 49 | } |
michael@0 | 50 | nested(); |