Support for exception throwing from JNI.

This change modifies the exception throwing JNI unit test to be
realistic and implements the missing exception throwing pieces on X86.
It also corrects some issues on ARM including methods with arguments
LJII (such as compareAndSwapInt).

Change-Id: I375f6efe2edeebb8007d7aa12c10b49742a8f119
22 files changed
tree: 0ac0bc114bbd9f0eef75d5d12e062554122d52f4
  1. build/
  2. src/
  3. test/
  4. tools/
  5. Android.mk