backout bd072e286fc0 (bug 858617) for assertion failures in check-jit-test