Bug 1072176 - Clean up misplaced assertions in public functions. r=waldo

--HG--
rename : js/src/jit-test/tests/sharedbuf/bug1068458-toolong.js => js/src/jit-test/tests/sharedbuf/toolong.js