+ stackframeinfo sfi;
+ java_objectheader *o;
+
+ /* create stackframeinfo */
+
+ stacktrace_create_inline_stackframeinfo(&sfi, pv, sp, ra, xpc);
+
+ /* create exception */
+
+ o = exceptions_new_arrayindexoutofboundsexception(index);
+
+ /* remove stackframeinfo */
+
+ stacktrace_remove_stackframeinfo(&sfi);
+
+ return o;
+}
+
+
+/* stacktrace_inline_arraystoreexception ***************************************
+
+ Creates an ArrayStoreException for inline stub.
+
+*******************************************************************************/
+
+java_objectheader *stacktrace_inline_arraystoreexception(u1 *pv, u1 *sp, u1 *ra,
+ u1 *xpc)
+{
+ stackframeinfo sfi;
+ java_objectheader *o;
+
+ /* create stackframeinfo */
+
+ stacktrace_create_inline_stackframeinfo(&sfi, pv, sp, ra, xpc);
+
+ /* create exception */
+
+ o = exceptions_new_arraystoreexception();
+
+ /* remove stackframeinfo */
+
+ stacktrace_remove_stackframeinfo(&sfi);
+
+ return o;
+}
+
+
+/* stacktrace_inline_classcastexception ****************************************
+
+ Creates an ClassCastException for inline stub.
+
+*******************************************************************************/
+
+java_objectheader *stacktrace_inline_classcastexception(u1 *pv, u1 *sp, u1 *ra,
+ u1 *xpc,
+ java_objectheader *o)
+{
+ stackframeinfo sfi;
+ java_objectheader *e;
+
+ /* create stackframeinfo */
+
+ stacktrace_create_inline_stackframeinfo(&sfi, pv, sp, ra, xpc);
+
+ /* create exception */
+
+ e = exceptions_new_classcastexception(o);
+
+ /* remove stackframeinfo */
+
+ stacktrace_remove_stackframeinfo(&sfi);
+
+ return e;
+}
+
+
+/* stacktrace_inline_nullpointerexception **************************************
+
+ Creates an NullPointerException for inline stub.
+
+*******************************************************************************/
+
+java_objectheader *stacktrace_inline_nullpointerexception(u1 *pv, u1 *sp,
+ u1 *ra, u1 *xpc)
+{
+ stackframeinfo sfi;
+ java_objectheader *o;
+
+ /* create stackframeinfo */
+
+ stacktrace_create_inline_stackframeinfo(&sfi, pv, sp, ra, xpc);
+
+ /* create exception */
+
+ o = exceptions_new_nullpointerexception();
+
+ /* remove stackframeinfo */
+
+ stacktrace_remove_stackframeinfo(&sfi);
+
+ return o;
+}
+
+
+/* stacktrace_inline_fillInStackTrace ******************************************
+
+ Fills in the correct stacktrace into an existing exception object
+ (this one is for inline exception stubs).
+
+*******************************************************************************/
+
+java_objectheader *stacktrace_inline_fillInStackTrace(u1 *pv, u1 *sp, u1 *ra,
+ u1 *xpc)
+{
+ stackframeinfo sfi;
+ java_objectheader *o;
+ methodinfo *m;
+
+ /* create stackframeinfo */
+
+ stacktrace_create_inline_stackframeinfo(&sfi, pv, sp, ra, xpc);
+
+ /* get exception */
+
+ o = *exceptionptr;
+ assert(o);
+
+ /* clear exception */
+
+ *exceptionptr = NULL;