summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-02-15 18:04:06 +0100
committerMike Pall <mike>2010-02-15 18:04:06 +0100
commite1905f498a8436434b0c1fba2f68d34376be4cbd (patch)
tree62d5afd62f9b5d76ae9d039640ab2c8d4b72e205 /src/lj_dispatch.c
parent3452bfcf8cb2dc67819485c7b011e5c6a59310f8 (diff)
downloadluajit-e1905f498a8436434b0c1fba2f68d34376be4cbd.tar.gz
luajit-e1905f498a8436434b0c1fba2f68d34376be4cbd.tar.bz2
luajit-e1905f498a8436434b0c1fba2f68d34376be4cbd.zip
Use a different marker for hot calls.
Diffstat (limited to '')
-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