[mips] Compute stack alignment on the fly.