Skip to content

Commit fd1ad3d

Browse files
committed
Add support for disassembling LOAD_FAST_BORROW_LOAD_FAST_BORROW
1 parent b6ab2f7 commit fd1ad3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/dis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
LOAD_COMMON_CONSTANT = opmap['LOAD_COMMON_CONSTANT']
4949
LOAD_SPECIAL = opmap['LOAD_SPECIAL']
5050
LOAD_FAST_LOAD_FAST = opmap['LOAD_FAST_LOAD_FAST']
51+
LOAD_FAST_BORROW_LOAD_FAST_BORROW = opmap['LOAD_FAST_BORROW_LOAD_FAST_BORROW']
5152
STORE_FAST_LOAD_FAST = opmap['STORE_FAST_LOAD_FAST']
5253
STORE_FAST_STORE_FAST = opmap['STORE_FAST_STORE_FAST']
5354
IS_OP = opmap['IS_OP']
@@ -598,7 +599,7 @@ def get_argval_argrepr(self, op, arg, offset):
598599
lbl = self.get_label_for_offset(argval)
599600
assert lbl is not None
600601
argrepr = f"to L{lbl}"
601-
elif deop in (LOAD_FAST_LOAD_FAST, STORE_FAST_LOAD_FAST, STORE_FAST_STORE_FAST):
602+
elif deop in (LOAD_FAST_LOAD_FAST, LOAD_FAST_BORROW_LOAD_FAST_BORROW, STORE_FAST_LOAD_FAST, STORE_FAST_STORE_FAST):
602603
arg1 = arg >> 4
603604
arg2 = arg & 15
604605
val1, argrepr1 = _get_name_info(arg1, self.varname_from_oparg)

0 commit comments

Comments
 (0)