mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Implement return hooks.
This commit is contained in:
parent
828bf84999
commit
a40e905aec
@ -2040,8 +2040,10 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
| stg r0, 0
|
||||
|
|
||||
|->vm_rethook: // Dispatch target for return hooks.
|
||||
| stg r0, 0
|
||||
| stg r0, 0
|
||||
| llgc RD, (DISPATCH_GL(hookmask))(DISPATCH)
|
||||
| tmll RD, HOOK_ACTIVE
|
||||
| jne >5
|
||||
| j >1
|
||||
|
|
||||
|->vm_inshook: // Dispatch target for instr/line hooks.
|
||||
| llgc RD, (DISPATCH_GL(hookmask))(DISPATCH)
|
||||
|
Loading…
Reference in New Issue
Block a user