JSStack::ensureCapacity() is doing its stack check in a complicated way that can result in it yielding different results than the LLINT and JIT stack checks. So, we'll simplify this code to do the same single pointer comparison against VM::m_jsStackLimit just like the LLINT and JIT does. This is a step towards https://bugs.webkit.org/show_bug.cgi?id=126320.
Created attachment 220147 [details] the patch.
Landed in r161170 on the jsCStack branch: <http://trac.webkit.org/r161170>.
Comment on attachment 220147 [details] the patch. r=me
Thanks for the review. Status updated in r161232: <http://trac.webkit.org/r161232>.