1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/nestedExit2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +function bitsinbyte(b) { 1.5 + var m = 1, c = 0; 1.6 + while(m<0x100) { 1.7 + if(b & m) c++; 1.8 + m <<= 1; 1.9 + } 1.10 + return 1; 1.11 +} 1.12 +function TimeFunc(func) { 1.13 + var x,y; 1.14 + for(var y=0; y<256; y++) func(y); 1.15 +} 1.16 +function nestedExit2() { 1.17 + TimeFunc(bitsinbyte); 1.18 + return "ok"; 1.19 +} 1.20 +assertEq(nestedExit2(), "ok");