Merge "Refactor safepoints in register allocator."