summaryrefslogtreecommitdiff
path: root/src/lj_gc.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-09-10 11:34:29 +0200
committerMike Pall <mike>2010-09-10 11:34:29 +0200
commit6fd315581c7fae86bbe57840408a249c60a691a9 (patch)
tree5ad790b1a4ef9e7e79485cbf55c6b1557073c06d /src/lj_gc.c
parent96957a4551a464160be2c1450f39744ac8313364 (diff)
downloadluajit-6fd315581c7fae86bbe57840408a249c60a691a9.tar.gz
luajit-6fd315581c7fae86bbe57840408a249c60a691a9.tar.bz2
luajit-6fd315581c7fae86bbe57840408a249c60a691a9.zip
Optimize BC_VARG: use RC for numparams.
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r--src/lj_gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index 3e3d1ec5..e76175fc 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -274,7 +274,7 @@ static MSize gc_traverse_frames(global_State *g, lua_State *th)
274 TValue *ftop = frame; 274 TValue *ftop = frame;
275 if (isluafunc(fn)) ftop += funcproto(fn)->framesize; 275 if (isluafunc(fn)) ftop += funcproto(fn)->framesize;
276 if (ftop > top) top = ftop; 276 if (ftop > top) top = ftop;
277 gc_markobj(g, frame_gc(frame)); /* Need to mark hidden function (or L). */ 277 gc_markobj(g, fn); /* Need to mark hidden function (or L). */
278 } 278 }
279 top++; /* Correct bias of -1 (frame == base-1). */ 279 top++; /* Correct bias of -1 (frame == base-1). */
280 if (top > tvref(th->maxstack)) top = tvref(th->maxstack); 280 if (top > tvref(th->maxstack)) top = tvref(th->maxstack);