]> git.kaiwu.me - njs.git/commit
Eliminating vm->main_index introduced in ea2ec4c3ed7d.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 24 Feb 2021 14:50:14 +0000 (14:50 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 24 Feb 2021 14:50:14 +0000 (14:50 +0000)
commit1c4eb4725c8465ea8ef6972d853b00259017cc30
tree1077d582539703a76f4f882820c3eeec1e1b878e
parentfbdfaa23b3a2a62757e85592b6090e8c88475ac6
Eliminating vm->main_index introduced in ea2ec4c3ed7d.

The vm->main_index was only needed for the disassembler in the
accumulative mode.  It was used to prevent from disassembling the code
from the previous iterations in the CLI.

The same result can be achieved without introducing the VM level field.
src/njs_disassembler.c
src/njs_vm.c
src/njs_vm.h