summaryrefslogtreecommitdiff
path: root/src/lib_base.c
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-27 17:42:41 +0100
committerMike Pall <mike>2009-12-27 17:42:41 +0100
commitbc470637081979939698413ca108372e672d3b48 (patch)
tree6559f76ea898aba5c263c8ab56f63eaa2f6480ff /src/lib_base.c
parent690760aa3853e63331f46e40c8276d9f5939261d (diff)
downloadluajit-bc470637081979939698413ca108372e672d3b48.tar.gz
luajit-bc470637081979939698413ca108372e672d3b48.tar.bz2
luajit-bc470637081979939698413ca108372e672d3b48.zip
Use fastcall for remaining 1-arg/2-arg calls from interpreter.
Simplifies conversion to x64 calling conventions.
Diffstat (limited to 'src/lib_base.c')
-rw-r--r--src/lib_base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib_base.c b/src/lib_base.c
index 821c81b4..3762879a 100644
--- a/src/lib_base.c
+++ b/src/lib_base.c
@@ -507,10 +507,11 @@ LJLIB_NOREG LJLIB_ASM(coroutine_wrap_aux)
507 507
508/* Inline declarations. */ 508/* Inline declarations. */
509LJ_ASMF void lj_ff_coroutine_wrap_aux(void); 509LJ_ASMF void lj_ff_coroutine_wrap_aux(void);
510LJ_FUNCA_NORET void lj_ffh_coroutine_wrap_err(lua_State *L, lua_State *co); 510LJ_FUNCA_NORET void LJ_FASTCALL lj_ffh_coroutine_wrap_err(lua_State *L,
511 lua_State *co);
511 512
512/* Error handler, called from assembler VM. */ 513/* Error handler, called from assembler VM. */
513void lj_ffh_coroutine_wrap_err(lua_State *L, lua_State *co) 514void LJ_FASTCALL lj_ffh_coroutine_wrap_err(lua_State *L, lua_State *co)
514{ 515{
515 co->top--; copyTV(L, L->top, co->top); L->top++; 516 co->top--; copyTV(L, L->top, co->top); L->top++;
516 if (tvisstr(L->top-1)) 517 if (tvisstr(L->top-1))