lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I am trying to optimise the scenario where for the OP_SELF bytecode
the table access can exploit the fact that the key is a short string.
I am doing this by checking in luaK_self() whether the key is a
constant short string and if so I generate a specialised bytecode.
However, when executing the code, an assertion is raised because the
string key is in fact a long string. I was wondering if the string
constant type can change between luaK_self() emitting the bytecode and
the VM executing it.


Thanks and Regards
Dibyendu