[Tarantool-patches] [PATCH luajit 4/4] dbg: introduce lj-bc, lj-func and lj-proto dumpers

Sergey Kaplun skaplun at tarantool.org
Fri Jun 5 19:10:33 MSK 2026


Hi, Sergey!
Thanks for the review!
See my answer below.

On 05.06.26, Sergey Bronnikov wrote:
> Hi, Sergey,
> 
> thanks for the patch! LGTM with a minor comment.
> 
> Sergey
> 
> On 6/4/26 12:30, Sergey Kaplun wrote:
> 
> 
> <snipped>
> 
> > +
> > +
> > +def bcmode_cd(op):
> > +    return int((lj_bc_mode()[op] >> 7) & 15)
> > +
> > +
> > +# Unfortunately, there is no place in the VM except the generated
> > +# Lua table, where the bytecode names are stored. So duplicate
> > +# them here.
> > +BYTECODES = [
> > +    # Comparison ops. ORDER OPR.
> "ORDER OPR" - what does it mean? Here and below.

Same as in bc.h: order of operators. See lj_parse.c for details.

> > +    'ISLT',
> > +    'ISGE',
> > +    'ISLE',
> <snipped>
> >   

-- 
Best regards,
Sergey Kaplun


More information about the Tarantool-patches mailing list