mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Simplify code
This commit is contained in:
parent
89213015a6
commit
dc809beb57
@ -558,12 +558,11 @@ static void LJ_FASTCALL recff_next(jit_State *J, RecordFFData *rd)
|
|||||||
static void LJ_FASTCALL recff_unpack(jit_State *J, RecordFFData *rd)
|
static void LJ_FASTCALL recff_unpack(jit_State *J, RecordFFData *rd)
|
||||||
{
|
{
|
||||||
TRef tab = J->base[0], trstart = J->base[1], trend = J->base[2];
|
TRef tab = J->base[0], trstart = J->base[1], trend = J->base[2];
|
||||||
if (tref_istab(tab) && trstart && (trend && !tref_isnil(trend))) {
|
if (tref_istab(tab) && trstart && trend && tref_isk2(trstart, trend) &&
|
||||||
if (tref_isk2(trstart, trend)) {
|
!tref_isnil(trend)) {
|
||||||
if (!tref_isnil(trstart))
|
if (!tref_isnil(trstart))
|
||||||
trstart = lj_opt_narrow_toint(J, trstart);
|
trstart = lj_opt_narrow_toint(J, trstart);
|
||||||
trend = lj_opt_narrow_toint(J, trend);
|
trend = lj_opt_narrow_toint(J, trend);
|
||||||
}
|
|
||||||
if (tref_isk2(trstart, trend)) {
|
if (tref_isk2(trstart, trend)) {
|
||||||
uint32_t nu;
|
uint32_t nu;
|
||||||
int32_t start = tref_isnil(trstart) ? 1 : IR(tref_ref(trstart))->i;
|
int32_t start = tref_isnil(trstart) ? 1 : IR(tref_ref(trstart))->i;
|
||||||
|
Loading…
Reference in New Issue
Block a user