Bug 870149 - Move common x86/x64 lowering code to x86-shared. r=h4writer