diff options
Diffstat (limited to 'src/lj_iropt.h')
-rw-r--r-- | src/lj_iropt.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lj_iropt.h b/src/lj_iropt.h index db99c118..1c94e91c 100644 --- a/src/lj_iropt.h +++ b/src/lj_iropt.h | |||
@@ -84,8 +84,6 @@ LJ_FUNC void lj_ir_kvalue(lua_State *L, TValue *tv, const IRIns *ir); | |||
84 | /* Convert IR operand types. */ | 84 | /* Convert IR operand types. */ |
85 | LJ_FUNC TRef LJ_FASTCALL lj_ir_tonum(jit_State *J, TRef tr); | 85 | LJ_FUNC TRef LJ_FASTCALL lj_ir_tonum(jit_State *J, TRef tr); |
86 | LJ_FUNC TRef LJ_FASTCALL lj_ir_tostr(jit_State *J, TRef tr); | 86 | LJ_FUNC TRef LJ_FASTCALL lj_ir_tostr(jit_State *J, TRef tr); |
87 | LJ_FUNC TRef LJ_FASTCALL lj_ir_tobit(jit_State *J, TRef tr); | ||
88 | LJ_FUNC TRef LJ_FASTCALL lj_ir_toint(jit_State *J, TRef tr); | ||
89 | 87 | ||
90 | /* Miscellaneous IR ops. */ | 88 | /* Miscellaneous IR ops. */ |
91 | LJ_FUNC int lj_ir_numcmp(lua_Number a, lua_Number b, IROp op); | 89 | LJ_FUNC int lj_ir_numcmp(lua_Number a, lua_Number b, IROp op); |
@@ -134,9 +132,17 @@ LJ_FUNC TRef LJ_FASTCALL lj_opt_dse_xstore(jit_State *J); | |||
134 | 132 | ||
135 | /* Narrowing. */ | 133 | /* Narrowing. */ |
136 | LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_convert(jit_State *J); | 134 | LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_convert(jit_State *J); |
135 | LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_index(jit_State *J, TRef key); | ||
136 | LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_toint(jit_State *J, TRef tr); | ||
137 | LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_tobit(jit_State *J, TRef tr); | ||
138 | #if LJ_HASFFI | ||
139 | LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_cindex(jit_State *J, TRef key); | ||
140 | #endif | ||
141 | LJ_FUNC TRef lj_opt_narrow_arith(jit_State *J, TRef rb, TRef rc, | ||
142 | TValue *vb, TValue *vc, IROp op); | ||
137 | LJ_FUNC TRef lj_opt_narrow_mod(jit_State *J, TRef rb, TRef rc); | 143 | LJ_FUNC TRef lj_opt_narrow_mod(jit_State *J, TRef rb, TRef rc); |
138 | LJ_FUNC TRef lj_opt_narrow_pow(jit_State *J, TRef rb, TRef rc, TValue *vc); | 144 | LJ_FUNC TRef lj_opt_narrow_pow(jit_State *J, TRef rb, TRef rc, TValue *vc); |
139 | LJ_FUNC IRType lj_opt_narrow_forl(cTValue *forbase); | 145 | LJ_FUNC IRType lj_opt_narrow_forl(jit_State *J, cTValue *forbase); |
140 | 146 | ||
141 | /* Optimization passes. */ | 147 | /* Optimization passes. */ |
142 | LJ_FUNC void lj_opt_dce(jit_State *J); | 148 | LJ_FUNC void lj_opt_dce(jit_State *J); |