MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaK_indexed

Function luaK_indexed

third-party/lua-5.2.4/src/lcode.c:703–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701
702
703void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
704 lua_assert(!hasjumps(t));
705 t->u.ind.t = t->u.info;
706 t->u.ind.idx = luaK_exp2RK(fs, k);
707 t->u.ind.vt = (t->k == VUPVAL) ? VUPVAL
708 : check_exp(vkisinreg(t->k), VLOCAL);
709 t->k = VINDEXED;
710}
711
712
713static 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