8057752: WhiteBox extension support for testingSummary: Refactored parts of whitebox.cpp to enable registration of whitebox methods defined outside this file.Reviewed-by: mikael, ctornqvi, jmasa