]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Drop obsolete frame shrinking after continuation return.
authorMike Pall <mike>
Thu, 28 Jan 2010 03:20:20 +0000 (04:20 +0100)
committerMike Pall <mike>
Thu, 28 Jan 2010 03:20:20 +0000 (04:20 +0100)
src/lj_record.c

index b783275266996530939f36170dc38e55a640e7ea..f24c287d6424867992d13de05ab4c9eb9f98e1a6 100644 (file)
@@ -1529,13 +1529,10 @@ static void rec_ret(jit_State *J, BCReg rbase, int gotresults)
     J->base -= cbase+1;
   } else if (frame_iscont(frame)) {
     ASMFunction cont = frame_contf(frame);
-    BCReg i, cbase = (BCReg)frame_delta(frame);
+    BCReg cbase = (BCReg)frame_delta(frame);
     J->pc = frame_contpc(frame)-1;
     J->baseslot -= (BCReg)cbase;
     J->base -= cbase;
-    /* Shrink maxslot as much as possible after return from continuation. */
-    for (i = cbase-2; i > 0 && J->base[i] == 0; i--) ;
-    J->maxslot = i;
     if (cont == lj_cont_ra) {
       /* Copy result to destination slot. */
       BCReg dst = bc_a(*J->pc);