• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1    /*
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
12