> our implementation of the Lua table uses hidden class, instead of a naive hash table as in Lua/LuaJIT.
What is "hidden class"? Is this a data structure?
What is "hidden class"? Is this a data structure?
The idea is that shapes (we represent objects like C like structs and not hash maps) are used for relatively non-dynamic objects and then we keep the shape metadata on functions themselves (inline caches) which means property access becomes just a byte offset.
Short example In JavaScript: Var a = {}; a.b = 15;
The hidden class object a maps the property b to where its stored, may include type information, etc.