function luaU.DumpDebug(I,b,O)local T T=O.strip and 0 or b.sizelineinfo I:DumpInt(T,O)for T=0,T-1,1 do I:DumpInt(b.lineinfo[T],O)end T=O.strip and 0 or b.sizelocvars I:DumpInt(T,O)for T=0,T-1,1 do I:DumpString(b.locvars[T].varname,O)I:DumpInt(b.locvars[T].startpc,O)I:DumpInt(b.locvars[T].endpc,O)end T=O.strip and 0 or b.sizeupvalues I:DumpInt(T,O)for T=0,T-1,1 do I:DumpString(b.upvalues[T],O)end end

function luaU:DumpDebug(f, D)
  local n
  n = D.strip and 0 or f.sizelineinfo           -- dump line information
  --was DumpVector
  self:DumpInt(n, D)
  for i = 0, n - 1 do
    self:DumpInt(f.lineinfo[i], D)
  end
  n = D.strip and 0 or f.sizelocvars            -- dump local information
  self:DumpInt(n, D)
  for i = 0, n - 1 do
    self:DumpString(f.locvars[i].varname, D)
    self:DumpInt(f.locvars[i].startpc, D)
    self:DumpInt(f.locvars[i].endpc, D)
  end
  n = D.strip and 0 or f.sizeupvalues           -- dump upvalue information
  self:DumpInt(n, D)
  for i = 0, n - 1 do
    self:DumpString(f.upvalues[i], D)
  end
end
