blob: 7ed2eaddf1e1f87e7b457a381f832ba8c2f3cee5 [file] [log] [blame]
%verify "executed"
%verify "exception for null object"
/*
* Throw an exception object in the current thread.
*/
/* throw vAA */
GET_GLUE(%ecx)
movzbl rINST_HI,rINST_FULL # rINST_FULL<- AA
GET_VREG(%eax,rINST_FULL) # eax<- exception object
movl offGlue_self(%ecx),%ecx # ecx<- glue->self
testl %eax,%eax # null object?
je common_errNullObject
movl %eax,offThread_exception(%ecx) # thread->exception<- obj
jmp common_exceptionThrown