blob: 09fc1ec6b87cf1c5c396782cb13b25a32d747c2c [file] [log] [blame]
%def op_throw():
/*
* Throw an exception object in the current thread.
*/
/* throw vAA */
EXPORT_PC
GET_VREG %eax, rINSTq # eax<- vAA (exception object)
testb %al, %al
jz common_errNullObject
movq rSELF, %rcx
movq %rax, THREAD_EXCEPTION_OFFSET(%rcx)
jmp MterpException