This is step 1 of 2 for fixing pr27241.
The changes to generalize the x86 call frame optimization to support 64-bit targets are fairly small, but to make the review easier, I separated these restructuring changes from the functional changes, which will come in the next patch. No functional changes are intended from this patch.
The deletion of "const" here was accidental. I'll need to remove it in the next patch, but I'll add it back for this one.