Change 8016696 added support for trampoline stubs. The sizes of these stubs were not accounted for when computing the expected size of the stubs section in shorten_branches().
This change introduces a small class CallStubImpl in the hpp section in the ad file which contains the size functions. Using a class avoids further 'extern' declarations. Putting the functions in the header assures they can be inlined and thus optimized away on platforms other than ppc64 where they return '0'. The ad_xxx.hpp file is included in output.cpp anyways.
To finally clean up the extern declarations in output.cpp this change introduces another small class HandlerImpl wrapping the corresponding functions for the handler stubs (exception and deopt). This also now makes the size computation inlineable.