Merge "Implement getMaxNumStubs() for x86 and x86_64."