aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_arm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm_arm.h')
-rw-r--r--src/lj_asm_arm.h10
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
1920static 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. */