diff options
author | Mike Pall <mike> | 2013-09-08 02:53:23 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-09-08 02:53:23 +0200 |
commit | d1194a82eb24afa1c749a0a8080b67d168f9f201 (patch) | |
tree | fb3bebc2cbf5032a49653dd6a0bd31c420dd8083 /src/lj_asm_arm.h | |
parent | d3d30d389b504495d054d71bdee0fe2677d4b44c (diff) | |
download | luajit-d1194a82eb24afa1c749a0a8080b67d168f9f201.tar.gz luajit-d1194a82eb24afa1c749a0a8080b67d168f9f201.tar.bz2 luajit-d1194a82eb24afa1c749a0a8080b67d168f9f201.zip |
Low-overhead profiler, part 4: JIT compiler support.
Diffstat (limited to 'src/lj_asm_arm.h')
-rw-r--r-- | src/lj_asm_arm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h index 497a5692..d736859c 100644 --- a/src/lj_asm_arm.h +++ b/src/lj_asm_arm.h | |||
@@ -1915,6 +1915,16 @@ static void asm_hiop(ASMState *as, IRIns *ir) | |||
1915 | #endif | 1915 | #endif |
1916 | } | 1916 | } |
1917 | 1917 | ||
1918 | /* -- Profiling ----------------------------------------------------------- */ | ||
1919 | |||
1920 | static void asm_prof(ASMState *as, IRIns *ir) | ||
1921 | { | ||
1922 | UNUSED(ir); | ||
1923 | asm_guardcc(as, CC_NE); | ||
1924 | emit_n(as, ARMI_TST|ARMI_K12|HOOK_PROFILE, RID_TMP); | ||
1925 | emit_lsptr(as, ARMI_LDRB, RID_TMP, (void *)&J2G(as->J)->hookmask); | ||
1926 | } | ||
1927 | |||
1918 | /* -- Stack handling ------------------------------------------------------ */ | 1928 | /* -- Stack handling ------------------------------------------------------ */ |
1919 | 1929 | ||
1920 | /* Check Lua stack size for overflow. Use exit handler as fallback. */ | 1930 | /* Check Lua stack size for overflow. Use exit handler as fallback. */ |