[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Parser(?) register allocation
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 12 Jan 2015 11:59:27 -0200
> I'm trying to figure out parser register allocation.
> So we have OP_SELF A B C R(A+1) := R(B); R(A) := R(B)[RK(C)], it
> allocates 2 registers. If I want to change R(A), I need a way to
> deallocate it so the next expression(s) can change it.
> My question is, how can I deallocate R(A) without deallocating
You will need to build a better register allocator. Lua allocates
registers following a strict stack discipline.