benilla-re systems structs docs

assignment

function · lua · boundary

Address
0x6fe970 · 246 bytes, up to 0x6fea65
Meaning
Compiles a multiple assignment from its targets and values
Confidence
verified, proof one
Finding
lua/compiler#statements-and-assignments

Finding: Statements and assignments in lua: the compiler

exprstat compiles a call as a statement with no results, else an assignment. assignment gathers the targets, which must be locals, upvalues, globals or fields (syntax error otherwise), and check_conflict copies a local that an earlier field target indexes by before it is overwritten. adjust_assign pads with nil or drops values, letting a final call supply the difference. retstat turns return f(...) into a tail call. breakstat closes upvalues of the blocks it leaves and raises no loop to break outside a loop.

functionnamedecided by
0x6fe920exprstatprimaryexp (0x6fe930), call with no results (0x6fe935..0x6fe942), assignment (0x6fe95b)
0x6fe970assignmentkinds 5 to 8 (0x6fe983..0x6fe996), , (0x6fe9a2), check_conflict (0x6fe9c6), = (0x6fe9e1), adjust_assign (0x6fea02), luaK_storevar (0x6fea36, 0x6fea58)
0x6fea70check_conflictfield targets (0x6fea85), table and key compared (0x6fea8e, 0x6fea9e), OP_MOVE (0x6feac1), luaK_reserveregs (0x6feacd)
0x6fe620adjust_assigndifference (0x6fe62a), call (0x6fe62d, 0x6fe65f), luaK_exp2nextreg (0x6fe673), luaK_nil (0x6fe68d)
0x6fe800localstatnames (0x6fe81f), = (0x6fe83b), explist1 (0x6fe849), adjust_assign (0x6fe862), adjustlocalvars (0x6fe86b)
0x6fe790localfuncnew_localvar (0x6fe7a4), free register raised in place (0x6fe7ac..0x6fe7b2), adjustlocalvars (0x6fe7ca), body (0x6fe7da), luaK_storevar (0x6fe7e9)
0x6fe880funcstatfuncname (0x6fe896), body (0x6fe8a2), luaK_storevar (0x6fe8b1), luaK_fixline (0x6fe8bb)
0x6fe8d0funcnamesinglevar (0x6fe8d9), . fields (0x6fe8f4), : with self (0x6fe8fe..0x6fe90d)
0x6feae0retstatblock_follow or ; (0x6feaf5, 0x6feafe), explist1 (0x6feb08), OP_TAILCALL (0x6feb33, 0x6feb36), OP_RETURN (0x6feb69)
0x6feb80breakstatbreakable block walk (0x6feba0..0x6febb0), no loop to break (0x6febb2), OP_CLOSE (0x6febd4), luaK_concat (0x6febe6)

The derivation is in the doc.

Callers 1

Callees 10

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