The short answer is that you can't, at least not easily.
The context is changed directly from the generated machine code, there
is no associated C++ function call that you can instrument. Grep
src/builtins/*/builtins-*.cc for IsolateAddressId::kContextAddress and
IsolateAddressId::kPendingHandlerContextAddress to find out how it
works.
It's possible to augment the generated code to call out to a C++
function but it's not exactly trivial. Grep the aforementioned files
for CallCFunction() and note how e.g.
Runtime::kUnwindAndFindExceptionHandler corresponds to
Runtime_UnwindAndFindExceptionHandler in
src/runtime/runtime-internal.cc. Good luck!