Implement return hooks.

This commit is contained in:
Michael Munday 2017-01-16 16:28:21 -05:00
parent 828bf84999
commit a40e905aec

View File

@ -2040,8 +2040,10 @@ static void build_subroutines(BuildCtx *ctx)
| stg r0, 0 | stg r0, 0
| |
|->vm_rethook: // Dispatch target for return hooks. |->vm_rethook: // Dispatch target for return hooks.
| stg r0, 0 | llgc RD, (DISPATCH_GL(hookmask))(DISPATCH)
| stg r0, 0 | tmll RD, HOOK_ACTIVE
| jne >5
| j >1
| |
|->vm_inshook: // Dispatch target for instr/line hooks. |->vm_inshook: // Dispatch target for instr/line hooks.
| llgc RD, (DISPATCH_GL(hookmask))(DISPATCH) | llgc RD, (DISPATCH_GL(hookmask))(DISPATCH)