Re: opcode order about BC_CALLMT and BC_CALLT

  • From: Mike Pall <mikelj-2001@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 28 Jan 2020 11:29:40 +0100

Baozeng wrote:

LJ_STATIC_ASSERT((int)BC_CALLMT + 1 == (int)BC_CALLT);
why?  what piece of code in the source causes that BC_CALLMT and BC_CALLT
order must have the above relationship? Thank you.

The bytecode interpreter in (some) vm_*.dasc. Look for BC_CALLMT.

--Mike

Other related posts: