aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2011-05-31 21:39:09 +0200
committerMike Pall <mike>2011-05-31 21:39:09 +0200
commita52208737122d58e1d872559970b8aef3b145b59 (patch)
treeebdff9b26e3d5d5f23dbebd8714bfdf5cd18f954 /src
parent496d3753f559b5bea5a1d48d48c9193608251a74 (diff)
downloadluajit-a52208737122d58e1d872559970b8aef3b145b59.tar.gz
luajit-a52208737122d58e1d872559970b8aef3b145b59.tar.bz2
luajit-a52208737122d58e1d872559970b8aef3b145b59.zip
x86/x64: Minor cleanup in assembler backend.
Diffstat (limited to 'src')
-rw-r--r--src/lj_asm_x86.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
index dfc853dd..b7712b36 100644
--- a/src/lj_asm_x86.h
+++ b/src/lj_asm_x86.h
@@ -1416,7 +1416,7 @@ static void asm_cnew(ASMState *as, IRIns *ir)
1416 } 1416 }
1417#else 1417#else
1418 int32_t ofs = sizeof(GCcdata); 1418 int32_t ofs = sizeof(GCcdata);
1419 if (LJ_HASFFI && sz == 8) { 1419 if (sz == 8) {
1420 ofs += 4; ir++; 1420 ofs += 4; ir++;
1421 lua_assert(ir->o == IR_HIOP); 1421 lua_assert(ir->o == IR_HIOP);
1422 } 1422 }
@@ -1428,11 +1428,11 @@ static void asm_cnew(ASMState *as, IRIns *ir)
1428 emit_movtomro(as, r, RID_RET, ofs); 1428 emit_movtomro(as, r, RID_RET, ofs);
1429 rset_clear(allow, r); 1429 rset_clear(allow, r);
1430 } 1430 }
1431 if (!LJ_HASFFI || ofs == sizeof(GCcdata)) break; 1431 if (ofs == sizeof(GCcdata)) break;
1432 ofs -= 4; ir--; 1432 ofs -= 4; ir--;
1433 } while (1); 1433 } while (1);
1434#endif 1434#endif
1435 lua_assert(sz == 4 || (sz == 8 && (LJ_64 || LJ_HASFFI))); 1435 lua_assert(sz == 4 || sz == 8);
1436 } 1436 }
1437 1437
1438 /* Combine initialization of marked, gct and typeid. */ 1438 /* Combine initialization of marked, gct and typeid. */