ravi
ravi copied to clipboard
Instruction format - enable 8-bit operand A
Currently the operand A in Ravi is 7 bits because of the need to make B and C 1-bit larger, and to enable a larger opcode. However, this creates a compatibility issue between Lua and Ravi as the maximum number of locals and up-values is affected by this. A solution is to ensure that the extra-bit is not needed by ensuring that the opcodes specify which operand is a constant.
LuaJIT ensures that no op has both arguments as constants - so we can adopt this approach.