Folded in callWithStackShell() fix.
Revert "Revert "Fix overly conservative inlining prediction".",

The previous failures were caused by the issue in
callWithStackShell(), which is fixed now.

This reverts commit 4a6444c3207c01238484785dbbca44257fde6370.