Exception support for object allocation.

Strengthen asserts, no extra unit tests as expect good coverage on this
already.

Change-Id: Ie8786932667b70d20c0cdf69b4b6b721b6244ded
diff --git a/src/thread.h b/src/thread.h
index 945d337..fe7900d 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -202,9 +202,9 @@
   int (*pIdiv)(int, int);
   long long (*pLmul)(long long, long long);
   long long (*pLdivmod)(long long, long long);
+  void* (*pAllocObjectFromCode)(uint32_t, void*);
   void* (*pArrayAllocFromCode)(uint32_t, void*, int32_t);
   void* (*pCheckAndArrayAllocFromCode)(uint32_t, void*, int32_t);
-  Object* (*pAllocObjectFromCode)(uint32_t, Method*);
   uint32_t (*pGet32Static)(uint32_t, const Method*);
   void (*pSet32Static)(uint32_t, const Method*, uint32_t);
   uint64_t (*pGet64Static)(uint32_t, const Method*);