Go to the source code of this file.
Classes | |
struct | DumpState |
Macros | |
#define | ldump_c |
#define | LUA_CORE |
#define | DumpMem(b, n, size, D) DumpBlock(b,(n)*(size),D) |
#define | DumpVar(x, D) DumpMem(&x,1,sizeof(x),D) |
#define | DumpCode(f, D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D) |
Functions | |
static void | DumpBlock (const void *b, size_t size, DumpState *D) |
static void | DumpChar (int y, DumpState *D) |
static void | DumpInt (int x, DumpState *D) |
static void | DumpNumber (lua_Number x, DumpState *D) |
static void | DumpVector (const void *b, int n, size_t size, DumpState *D) |
static void | DumpString (const TString *s, DumpState *D) |
static void | DumpFunction (const Proto *f, DumpState *D) |
static void | DumpConstants (const Proto *f, DumpState *D) |
static void | DumpUpvalues (const Proto *f, DumpState *D) |
static void | DumpDebug (const Proto *f, DumpState *D) |
static void | DumpHeader (DumpState *D) |
int | luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip) |
#define DumpCode | ( | f, | |
D | |||
) | DumpVector(f->code,f->sizecode,sizeof(Instruction),D) |
Definition at line 75 of file ldump.cpp.
Referenced by DumpFunction().
Definition at line 25 of file ldump.cpp.
Referenced by DumpVector().
Definition at line 26 of file ldump.cpp.
Referenced by DumpChar(), DumpInt(), DumpNumber(), and DumpString().
Definition at line 28 of file ldump.cpp.
References DumpState::data, DumpState::L, lua_lock, lua_unlock, DumpState::status, and DumpState::writer.
Referenced by DumpHeader(), and DumpString().
Definition at line 38 of file ldump.cpp.
References DumpVar.
Referenced by DumpConstants(), DumpFunction(), and DumpUpvalues().
Definition at line 79 of file ldump.cpp.
References bvalue, DumpChar(), DumpFunction(), DumpInt(), DumpNumber(), DumpString(), i, Proto::k, lua_assert, LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, LUA_TSTRING, nvalue, Proto::p, rawtsvalue, Proto::sizek, Proto::sizep, and ttypenv.
Referenced by DumpFunction().
Definition at line 119 of file ldump.cpp.
References DumpInt(), DumpString(), DumpVector(), LocVar::endpc, i, Proto::lineinfo, Proto::locvars, Upvaldesc::name, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizeupvalues, Proto::source, LocVar::startpc, DumpState::strip, Proto::upvalues, and LocVar::varname.
Referenced by DumpFunction().
Definition at line 138 of file ldump.cpp.
References DumpChar(), DumpCode, DumpConstants(), DumpDebug(), DumpInt(), DumpUpvalues(), Proto::is_vararg, Proto::lastlinedefined, Proto::linedefined, Proto::maxstacksize, and Proto::numparams.
Referenced by DumpConstants(), and luaU_dump().
Definition at line 151 of file ldump.cpp.
References DumpBlock(), LUAC_HEADERSIZE, and luaU_header().
Referenced by luaU_dump().
Definition at line 44 of file ldump.cpp.
References DumpVar.
Referenced by DumpConstants(), DumpDebug(), DumpFunction(), DumpUpvalues(), and DumpVector().
|
static |
Definition at line 60 of file ldump.cpp.
References DumpBlock(), DumpVar, getstr, TString::len, and TString::tsv.
Referenced by DumpConstants(), and DumpDebug().
Definition at line 108 of file ldump.cpp.
References DumpChar(), DumpInt(), i, Upvaldesc::idx, Upvaldesc::instack, Proto::sizeupvalues, and Proto::upvalues.
Referenced by DumpFunction().
Definition at line 54 of file ldump.cpp.
References DumpInt(), and DumpMem.
Referenced by DumpDebug().
Definition at line 161 of file ldump.cpp.
References DumpState::data, DumpFunction(), DumpHeader(), DumpState::L, DumpState::status, DumpState::strip, utils::strip(), and DumpState::writer.
Referenced by lua_dump(), and pmain().