• Yukihiro "Matz" Matsumoto's avatar
    Make `OP_JMP*` operand address to be relative. · 7150c675
    Yukihiro "Matz" Matsumoto authored
    Jump target address is `operand (16bit)` + `address of next instruction`.
    
    In addition, `ilen` was made `uint32_t` so that `iseq` length limitation
    of 65536 is removed. Only jump target address should be within signed
    16bit (-32768 .. 32767).
    7150c675
vm.c 76.5 KB