blob: adc8b047cae0cc133f2cc5e362297e9d261e6a24 [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001 /*
2 * Throw an exception object in the current thread.
3 */
4 /* throw vAA */
5 EXPORT_PC() # exception handler can throw
6 GET_OPA(a2) # a2 <- AA
7 GET_VREG(a1, a2) # a1 <- vAA (exception object)
8 # null object?
9 beqz a1, common_errNullObject # yes, throw an NPE instead
10 sw a1, THREAD_EXCEPTION_OFFSET(rSELF) # thread->exception <- obj
11 b MterpException