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. Android.mk
  2. build/
  3. src/
  4. test/
  5. tools/