Join GitHub today
pbc_dump: Indicate sub/method boundaries in -d mode #511
The disassembled output of pbc_dump run with -d is a long string of hex numbers and opcodes. To determine where a sub starts or ends requires a trip to the constants table, where the Sub constants have their starting and ending offsets recorded.
Please modify pbc_dump so that when dumping it emits indicators for the beginning/end of subs:
Note that a hypothetical future optimizer might arrange the bytecode so that subs are not discrete. Marking beginnings and endings separately should handle this.