MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaK_indexed

Function luaK_indexed

freebsd/contrib/openzfs/module/lua/lcode.c:701–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699
700
701void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
702 lua_assert(!hasjumps(t));
703 t->u.ind.t = t->u.info;
704 t->u.ind.idx = luaK_exp2RK(fs, k);
705 t->u.ind.vt = (t->k == VUPVAL) ? VUPVAL
706 : check_exp(vkisinreg(t->k), VLOCAL);
707 t->k = VINDEXED;
708}
709
710
711static int constfolding (OpCode op, expdesc *e1, expdesc *e2) {

Callers 3

singlevarFunction · 0.70
fieldselFunction · 0.70
suffixedexpFunction · 0.70

Calls 1

luaK_exp2RKFunction · 0.70

Tested by

no test coverage detected