[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A proposal for safe bytecode in Lua 5.2
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 18 Apr 2011 16:37:08 -0300
> On Mon, Apr 18, 2011 at 7:48 PM, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
> >> - ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_LOADNIL */
> >> + ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_LOADNIL */
> >
> > There seems to be a problem here. OP_LOADNIL uses the macro RB like
> > any other instruction that uses B as a register, and this macro
> > asserts that the instruction has OpArgR for B. (I would prefer
> > to leave this OpArgR as it is...)
>
> OP_LOADNIL does make use the RB macro. [...]
My main point was that the code you sent will not work with assertions on.
-- Roberto