Home | History | Annotate | Download | only in mips
      1 %verify "executed"
      2 %verify "exception for null object"
      3     /*
      4      * Throw an exception object in the current thread.
      5      */
      6     /* throw vAA */
      7     GET_OPA(a2)                            #  a2 <- AA
      8     GET_VREG(a1, a2)                       #  a1 <- vAA (exception object)
      9     EXPORT_PC()                            #  exception handler can throw
     10     # null object?
     11     beqz      a1, common_errNullObject     #  yes, throw an NPE instead
     12     # bypass dvmSetException, just store it
     13     STORE_offThread_exception(a1, rSELF)   #  thread->exception <- obj
     14     b         common_exceptionThrown
     15 
     16