Move dex exception helpers to their own file and use dex accessor

Also change the input argument to be a code item accessor
instead of a code item pointer. This removes the dependency on
the code item layout.

Bug: 63756964
Test: test-art-host

Change-Id: If75a168d0b5a77d08fa3c6ba38d00705158911db
13 files changed