lua_dump
function · lua · boundary
- Address
0x6f4370· 65 bytes, up to0x6f43b0- Meaning
- Writes a Lua function with no upvalues through a chunk writer, returning 0 for other values
- Confidence
- verified, proof two
- Finding
- lua/api#calls-and-chunks
Finding: Calls and chunks in lua: the C API
lua_pcall runs a call in protected mode with an optional handler index: it saves the function
position, builds the argument record on the stack and calls luaD_pcall. f_call, the record's
function, calls luaD_call. lua_cpcall and f_Ccall call a C function in protected mode, with
a light userdata argument. lua_dump writes a Lua function that has no upvalues through
luaU_dump and answers 0 for any other value.
| function | name | decided by |
|---|---|---|
0x6f41a0 | lua_pcall | record of the function and result count on the stack, luaD_pcall (0x6f4237), ret 8 |
0x6f4250 | f_call | loads [edx] and [edx+4] (0x6f4250), calls luaD_call (0x6f4256) |
0x6f4260 | lua_cpcall | mov edx,0x6f4290 (0x6f427c) names f_Ccall as the protected function |
0x6f4290 | f_Ccall | luaF_newCclosure (0x6f4298), tag 2 stored (0x6f42d7), luaD_call (0x6f4315) |
0x6f4370 | lua_dump | tag 6 and the C and upvalue bytes (0x6f437b, 0x6f4383, 0x6f438a), luaU_dump (0x6f4399) |
The derivation is in the doc.
Callers 1
- str_dump lua
Callees 1
- luaU_dump lua
Calls and jumps by a bare address, from tables/calls.tsv.