lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
> (The indices of the upvalues for the new closure also
> are now stored in struct Proto, so that OP_CLOSURE does not need those
> OP_MOVE/OP_GETUPVAL pseudo-instructions after it.)

Yes, I did that in LuaJIT 2.x, too. I've also put the prototypes
objects themselves into the constants table to avoid managing an
extra growable table. And the constants table is type-specialized
(GC objects below pt->k, numbers above pt->k) to reduce memory
usage.

--Mike