Class cast, fill array and interface exception support.
This change uses the deliver exception mechanism to implement support
for a number of runtime exceptions. It also tidies up code in the
compiler and allocates a singular callee save method in the image.
Also adds a fix for JNI internal test where we weren't passing
Thread::Current() and that this value is now being used in generated code.
Change-Id: I57eefd9afe40e92fa3a7e737f1a2ed7e1094b5c1
diff --git a/src/asm_support.h b/src/asm_support.h
index 097ab7a..17a29cf 100644
--- a/src/asm_support.h
+++ b/src/asm_support.h
@@ -8,9 +8,12 @@
#define rSELF r9
#define rLR r14
#define SUSPEND_CHECK_INTERVAL (1000)
-#endif
+// Offset of field Thread::top_of_managed_stack_ verified in InitCpu
+#define THREAD_TOP_OF_MANAGED_STACK_OFFSET 333
+// Offset of field Thread::top_of_managed_stack_pc_ verified in InitCpu
+#define THREAD_TOP_OF_MANAGED_STACK_PC_OFFSET 337
-#if defined(__i386__)
+#elif defined(__i386__)
// Offset of field Thread::self_ verified in InitCpu
#define THREAD_SELF_OFFSET 0x165
#endif