aboutsummaryrefslogtreecommitdiff
path: root/src/vm_arm.dasc
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm_arm.dasc')
-rw-r--r--src/vm_arm.dasc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vm_arm.dasc b/src/vm_arm.dasc
index dd39052c..0bd929fd 100644
--- a/src/vm_arm.dasc
+++ b/src/vm_arm.dasc
@@ -2082,6 +2082,18 @@ static void build_subroutines(BuildCtx *ctx)
2082 | ldr INS, [PC, #-4] 2082 | ldr INS, [PC, #-4]
2083 | bx CRET1 2083 | bx CRET1
2084 | 2084 |
2085 |->vm_profhook: // Dispatch target for profiler hook.
2086#if LJ_HASPROFILE
2087 | mov CARG1, L
2088 | str BASE, L->base
2089 | mov CARG2, PC
2090 | bl extern lj_dispatch_profile // (lua_State *L, const BCIns *pc)
2091 | // HOOK_PROFILE is off again, so re-dispatch to dynamic instruction.
2092 | ldr BASE, L->base
2093 | sub PC, PC, #4
2094 | b ->cont_nop
2095#endif
2096 |
2085 |//----------------------------------------------------------------------- 2097 |//-----------------------------------------------------------------------
2086 |//-- Trace exit handler ------------------------------------------------- 2098 |//-- Trace exit handler -------------------------------------------------
2087 |//----------------------------------------------------------------------- 2099 |//-----------------------------------------------------------------------