summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r--src/lj_dispatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c
index f1579c8d..29b06438 100644
--- a/src/lj_dispatch.c
+++ b/src/lj_dispatch.c
@@ -409,8 +409,9 @@ ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns *pc)
409#endif 409#endif
410 call_init(L, fn); 410 call_init(L, fn);
411#if LJ_HASJIT 411#if LJ_HASJIT
412 if (J->L) { /* Marker for hot call. */ 412 if ((uintptr_t)pc & 1) { /* Marker for hot call. */
413 lj_trace_hot(J, pc); 413 J->L = L;
414 lj_trace_hot(J, (const BCIns *)((uintptr_t)pc & ~(uintptr_t)1));
414 goto out; 415 goto out;
415 } 416 }
416#endif 417#endif