News for hackers. Stuff that matters.
Re:Lua Devirtualization by Ferib on Saturday February 26, 2022 @09:55AM (#30478009)
The source you gave me refers to these A, B, C as 'registers'. Yes, you are correct that they are encoded inside the Lua instruction and can not be accessed globally.

Will make it more obvious that these registers are part of the instruction itself as it may confuse people that are familiar with more traditional VMs.

Re:Lua Devirtualization by Rochus on Saturday February 26, 2022 @10:11AM (#30478134)
> refers to these A, B, C as 'registers'

No, A, B and C are called "instruction field", not "register". The registers are referenced in the text like e.g. "R(A)" meaning "the register signified by instruction field A". E.g. the instruction "MOVE A B" is described as "R(A) := R(B)". Each register carries a Lua value. The registers are not part of the instructions, but part of the activation record, which is allocated when Lua enters a function.