Refactoring the x86 and x86-64 calling convention implementations,