aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_x86.h
diff options
context:
space:
mode:
authorMike Pall <mike>2013-09-08 02:53:23 +0200
committerMike Pall <mike>2013-09-08 02:53:23 +0200
commitd1194a82eb24afa1c749a0a8080b67d168f9f201 (patch)
treefb3bebc2cbf5032a49653dd6a0bd31c420dd8083 /src/lj_asm_x86.h
parentd3d30d389b504495d054d71bdee0fe2677d4b44c (diff)
downloadluajit-d1194a82eb24afa1c749a0a8080b67d168f9f201.tar.gz
luajit-d1194a82eb24afa1c749a0a8080b67d168f9f201.tar.bz2
luajit-d1194a82eb24afa1c749a0a8080b67d168f9f201.zip
Low-overhead profiler, part 4: JIT compiler support.
Diffstat (limited to 'src/lj_asm_x86.h')
-rw-r--r--src/lj_asm_x86.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
index 82517600..8b72c5e8 100644
--- a/src/lj_asm_x86.h
+++ b/src/lj_asm_x86.h
@@ -2348,6 +2348,16 @@ static void asm_hiop(ASMState *as, IRIns *ir)
2348#endif 2348#endif
2349} 2349}
2350 2350
2351/* -- Profiling ----------------------------------------------------------- */
2352
2353static void asm_prof(ASMState *as, IRIns *ir)
2354{
2355 UNUSED(ir);
2356 asm_guardcc(as, CC_NE);
2357 emit_i8(as, HOOK_PROFILE);
2358 emit_rma(as, XO_GROUP3b, XOg_TEST, &J2G(as->J)->hookmask);
2359}
2360
2351/* -- Stack handling ------------------------------------------------------ */ 2361/* -- Stack handling ------------------------------------------------------ */
2352 2362
2353/* Check Lua stack size for overflow. Use exit handler as fallback. */ 2363/* Check Lua stack size for overflow. Use exit handler as fallback. */