Add back printing out code info. Whoops!

This commit is contained in:
Scott Shawcroft 2018-10-18 14:23:17 -07:00
parent cb0126131a
commit b4dcbb79b2
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -289,10 +289,12 @@ class RawCode:
print(' ', self.simple_name.qstr_id, '& 0xff,', self.simple_name.qstr_id, '>> 8,')
print(" // source file")
print(' ', self.source_file.qstr_id, '& 0xff,', self.source_file.qstr_id, '>> 8,')
print(" // code info")
print(' ', end='')
for i in range(self.ip2 + 4, self.ip):
opcode = self.bytecode[i]
print(' 0x%02x,' % self.bytecode[i], end='')
print()
print(" // bytecode")
ip = self.ip
while ip < len(self.bytecode):
f, sz = mp_opcode_format(self.bytecode, ip)