Explorar o código

Drop obsolete frame shrinking after continuation return.

Mike Pall %!s(int64=16) %!d(string=hai) anos
pai
achega
2ed0bb7f1e
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      src/lj_record.c

+ 1 - 4
src/lj_record.c

@@ -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);