diff options
author | Mike Pall <mike> | 2009-12-27 17:42:41 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-27 17:42:41 +0100 |
commit | bc470637081979939698413ca108372e672d3b48 (patch) | |
tree | 6559f76ea898aba5c263c8ab56f63eaa2f6480ff /src/lj_state.c | |
parent | 690760aa3853e63331f46e40c8276d9f5939261d (diff) | |
download | luajit-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/lj_state.c')
-rw-r--r-- | src/lj_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_state.c b/src/lj_state.c index aa22ac34..57c3dded 100644 --- a/src/lj_state.c +++ b/src/lj_state.c | |||
@@ -85,7 +85,7 @@ void lj_state_shrinkstack(lua_State *L, MSize used) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | /* Try to grow stack. */ | 87 | /* Try to grow stack. */ |
88 | void lj_state_growstack(lua_State *L, MSize need) | 88 | void LJ_FASTCALL lj_state_growstack(lua_State *L, MSize need) |
89 | { | 89 | { |
90 | if (L->stacksize > LJ_STACK_MAXEX) /* overflow while handling overflow? */ | 90 | if (L->stacksize > LJ_STACK_MAXEX) /* overflow while handling overflow? */ |
91 | lj_err_throw(L, LUA_ERRERR); | 91 | lj_err_throw(L, LUA_ERRERR); |
@@ -99,7 +99,7 @@ void lj_state_growstack(lua_State *L, MSize need) | |||
99 | } | 99 | } |
100 | } | 100 | } |
101 | 101 | ||
102 | void lj_state_growstack1(lua_State *L) | 102 | void LJ_FASTCALL lj_state_growstack1(lua_State *L) |
103 | { | 103 | { |
104 | lj_state_growstack(L, 1); | 104 | lj_state_growstack(L, 1); |
105 | } | 105 | } |