fix: display opcode 3.7/3.9

This commit is contained in:
Shunsuke Shibayama 2023-07-12 01:16:06 +09:00
parent dc86be1125
commit 3a01d71fe8
3 changed files with 52 additions and 11 deletions

View file

@ -52,7 +52,7 @@ pub enum CommonOpcode {
COMPARE_OP = 107,
IMPORT_NAME = 108,
IMPORT_FROM = 109,
JUMP_FORWARD = 110,
// JUMP_FORWARD = 110,
JUMP_IF_FALSE_OR_POP = 111,
JUMP_IF_TRUE_OR_POP = 112,
// JUMP_ABSOLUTE = 113,
@ -117,7 +117,7 @@ impl TryFrom<u8> for CommonOpcode {
107 => COMPARE_OP,
108 => IMPORT_NAME,
109 => IMPORT_FROM,
110 => JUMP_FORWARD,
// 110 => JUMP_FORWARD,
111 => JUMP_IF_FALSE_OR_POP,
112 => JUMP_IF_TRUE_OR_POP,
// 113 => JUMP_ABSOLUTE,