Revert "Blua: OP_SELF can use 'luaV_fastget' specialized for strings, as it is applied only to string keys"

This reverts commit 0fb752b745.
This commit is contained in:
alufolie91 committed 2026-05-15 11:53:42 +02:00
1 parent 9f9e6450f2
commit 4fa937728b
1 file changed
+1 -6
+1 -6
View File
@@ -529,16 +529,11 @@ void luaV_execute (lua_State *L, int nexeccalls) {
continue;
}
case OP_SELF: {
TValue *slot;
StkId ra = RA(i);
StkId rb = RB(i);
TValue *rc = RKC(i);
TString *key = rawtsvalue(rc); /* key must be a string */
setobjs2s(L, ra + 1, rb);
if (luaV_fastget(L, rb, key, slot, luaH_getstr)) {
setobj2s(L, ra, slot);
}
else Protect(luaV_finishget(L, rb, rc, ra, slot));
gettableProtected(L, rb, rc, ra);
continue;
}
case OP_ADD: {