Minor instruction changes.

This commit is contained in:
Michael Munday 2017-01-10 11:58:24 -05:00
parent d44390a2d3
commit 102d848577

View File

@ -292,10 +292,7 @@
| |
|// Move table write barrier back. Overwrites reg. |// Move table write barrier back. Overwrites reg.
|.macro barrierback, tab, reg |.macro barrierback, tab, reg
| // TODO: more efficient way? | ni tab->marked, ~LJ_GC_BLACK // black2gray(tab)
| llgc reg, tab->marked
| nill reg, (uint16_t)~LJ_GC_BLACK // black2gray(tab)
| stc reg, tab->marked
| lg reg, (DISPATCH_GL(gc.grayagain))(DISPATCH) | lg reg, (DISPATCH_GL(gc.grayagain))(DISPATCH)
| stg tab, (DISPATCH_GL(gc.grayagain))(DISPATCH) | stg tab, (DISPATCH_GL(gc.grayagain))(DISPATCH)
| stg reg, tab->gclist | stg reg, tab->gclist
@ -316,8 +313,7 @@ static void build_subroutines(BuildCtx *ctx)
|//----------------------------------------------------------------------- |//-----------------------------------------------------------------------
| |
|->vm_returnp: |->vm_returnp:
| lghi TMPR2, FRAME_P | tmll PC, FRAME_P
| nr TMPR2, PC
| je ->cont_dispatch | je ->cont_dispatch
| |
| // Return from pcall or xpcall fast func. | // Return from pcall or xpcall fast func.