benilla-re systems structs docs

luaK_dischargejpc

function · lua · boundary

Address
0x7018b0 · 36 bytes, up to 0x7018d3
Meaning
Points the jumps pending to the next instruction at it
Confidence
verified, proof one
Finding
lua/codegen#emitting-instructions

Finding: Emitting instructions in lua: the code generator

luaK_code resolves the jumps pending to the new instruction through luaK_dischargejpc, appends it and the line to the prototype's code and line vectors, growing each by luaM_growaux (code size overflow), and returns its index. luaK_codeABC and luaK_codeABx pack the operands and take the line of the last token read; luaK_fixline sets the line of the last instruction.

functionnamedecided by
0x701820luaK_codeluaK_dischargejpc (0x70182c), two luaM_growaux (0x701852, 0x701884), stores (0x701860, 0x701895), pc raised (0x70189f)
0x7018b0luaK_dischargejpcluaK_patchlistaux with the pc for every target (0x7018b3..0x7018c6), pending jumps -1 (0x7018cb)
0x7018e0luaK_codeABC`((A << 9
0x701910luaK_codeABx`(A << 18
0x701810luaK_fixlineline of pc - 1 (0x701818)

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.