blob: 6559a295cb010de4e62fa1bab9d4264915f75ec6 [file] [log] [blame]
%verify "executed"
%verify "exception for null object"
/*
* Throw an exception object in the current thread.
*/
/* throw vAA */
EXPORT_PC
GET_VREG_R %eax rINST # eax<- exception object
movl rSELF,%ecx # ecx<- self
testl %eax,%eax # null object?
je common_errNullObject
movl %eax,offThread_exception(%ecx) # thread->exception<- obj
jmp common_exceptionThrown