/* Load the upvalues for a function. The names must be filled first, because the filling of the other fields can raise read errors and the creation of the error message can call an emergency collection; in that case all prototypes must be consistent for the GC.  */
static void loadUpvalues(LoadState *S, Proto *f)
/* Load the upvalues for a function. The names must be filled first, because the filling of the other fields can raise read errors and the creation of the error message can call an emergency collection; in that case all prototypes must be consistent for the GC.  */
static void loadUpvalues(LoadState *S, Proto *f)
{
    f->upvalues[i].instack = loadByte(S);
    f->upvalues[i].idx = loadByte(S);
    f->upvalues[i].kind = loadByte(S);
  }
}