Skip to content

Commit e4d929c

Browse files
author
rocky
committed
Fill in 3.10 opcode numbers.
Show more Graal output when the "bytes" format is given.
1 parent 6c82559 commit e4d929c

File tree

2 files changed

+56
-53
lines changed

2 files changed

+56
-53
lines changed

xdis/disasm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ def disco_loop(
241241
elif is_unusual_bytecode:
242242
if hasattr(co, "graal_instr_str") and co.graal_instr_str:
243243
real_out.write(co.graal_instr_str)
244+
if asm_format in ("extended_bytes", "bytes"):
245+
real_out.write("instruction bytecode:\n%s\n" % co.co_code)
246+
244247
else:
245248
if co.co_name == "??":
246249
real_out.write("\n# Instruction disassembly not supported here.\n")

0 commit comments

Comments
 (0)