mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Clean up code
This commit is contained in:
parent
b5783323ef
commit
b4d853342c
@ -1104,13 +1104,13 @@ int lj_record_mm_lookup(jit_State *J, RecordIndex *ix, MMS mm)
|
|||||||
GG_OFS(g.gcroot[GCROOT_BASEMT+itypemap(&ix->tabv)]));
|
GG_OFS(g.gcroot[GCROOT_BASEMT+itypemap(&ix->tabv)]));
|
||||||
goto nocheck;
|
goto nocheck;
|
||||||
}
|
}
|
||||||
ix->mt = mt ? mix.tab : TREF_NIL;
|
|
||||||
if (ix->mtspec && mt) {
|
if (ix->mtspec && mt) {
|
||||||
TRef kmt = lj_ir_ktab(J, mt);
|
TRef kmt = lj_ir_ktab(J, mt);
|
||||||
emitir(IRTG(IR_EQ, IRT_TAB), mix.tab, kmt);
|
emitir(IRTG(IR_EQ, IRT_TAB), mix.tab, kmt);
|
||||||
mix.tab = kmt;
|
mix.tab = kmt;
|
||||||
ix->mt = kmt;
|
ix->mt = kmt;
|
||||||
} else {
|
} else {
|
||||||
|
ix->mt = mt ? mix.tab : TREF_NIL;
|
||||||
emitir(IRTG(mt ? IR_NE : IR_EQ, IRT_TAB), mix.tab, lj_ir_knull(J, IRT_TAB));
|
emitir(IRTG(mt ? IR_NE : IR_EQ, IRT_TAB), mix.tab, lj_ir_knull(J, IRT_TAB));
|
||||||
}
|
}
|
||||||
nocheck:
|
nocheck:
|
||||||
|
Loading…
Reference in New Issue
Block a user