x86/x64: Minor cleanup in assembler backend.

This commit is contained in:
Mike Pall 2011-05-31 21:39:09 +02:00
parent 496d3753f5
commit a522087371

View File

@ -1416,7 +1416,7 @@ static void asm_cnew(ASMState *as, IRIns *ir)
} }
#else #else
int32_t ofs = sizeof(GCcdata); int32_t ofs = sizeof(GCcdata);
if (LJ_HASFFI && sz == 8) { if (sz == 8) {
ofs += 4; ir++; ofs += 4; ir++;
lua_assert(ir->o == IR_HIOP); lua_assert(ir->o == IR_HIOP);
} }
@ -1428,11 +1428,11 @@ static void asm_cnew(ASMState *as, IRIns *ir)
emit_movtomro(as, r, RID_RET, ofs); emit_movtomro(as, r, RID_RET, ofs);
rset_clear(allow, r); rset_clear(allow, r);
} }
if (!LJ_HASFFI || ofs == sizeof(GCcdata)) break; if (ofs == sizeof(GCcdata)) break;
ofs -= 4; ir--; ofs -= 4; ir--;
} while (1); } while (1);
#endif #endif
lua_assert(sz == 4 || (sz == 8 && (LJ_64 || LJ_HASFFI))); lua_assert(sz == 4 || sz == 8);
} }
/* Combine initialization of marked, gct and typeid. */ /* Combine initialization of marked, gct and typeid. */